This content has been marked as final. Show 12 replies
Here you go.
uuuy! :) thanks - but I am beginner, I do not get it well ... could you explain it to me more simplier, please?
I have a MC on the main stage called "BGD"
BGD contains mask ("MASK") and content ("CONTENT")
CONTENT is twice bigger than the MASK
I need to resize the BGD same like the screen width (thats done by function , it works fine like: BGD._width = Stage.width;)
BUT! this function resize not the "MASK" dimensions but the "CONTENT" dimensions and this is the problem - I want to resize my BGD movie like what I see, so that means my "MASK", not the "CONTENT" ...
could you help me?
if you want to resize your mask use:
no, no, I want to resize my MASKED CONTENT ....
you just said, "...that means my 'MASK', not the 'CONTENT' ...".
anyway, that's the code to resize your mask and if you want to resize the content use:
I did not explain myself well, I am sorry.
What I want is to resize MASKED CONTENT (in this case mc BGD) that means resize both in the same time the MASK and the CONTENT according to the MASK.
what do you want to appear on-stage? is that dependent on Stage size or screen size? (and those are different).
all is dependent on SCREEN SIZE. my mc BGD is supposed to resize according to the SCREEN RESOLUTION. but as I already said - if I resize my BGD directly, flash shows and resizes the CONTENT of my BGD mc (I see white space around the BGD mc), if I resize the MASK of BGD, the CONTENT stays fixed - nor this is solution. I simply want to resize whole BGD mc, in other words both in same time the MASK and the CONTENT proportionally. ... did you get it? :)
and thanks for replying me by the way ;)
i'm still not sure what you want to appear on-stage, but try:
take a look here
try to resize the browser window, you see how the mc BGD is changing according to it? right, that works.
BUT! what you see is BGD mc (800x600px) which contains MASK mc (800x600px) and CONTENT mc (1400x1900px) which are the gradients moves.
if I ask flash to resize my BGD it resize the CONTENT, not the BGD - you see the white space around ...
do you understand?
o.k, I got it - the var ratioWidth was the key :)
thank you very much, kglad! you were very kind ...