PDA

View Full Version : How did they do this type of scaling?



Tony Bolero
April 29th, 2005, 10:59 AM
Hi!

I found this site: http://www.jerde.com/flash.html

They have done something cool when you scale the browser window. The background image scale as usual but if you look at the menu, logo and the map they all just stick to the corners. They donīt scale and I donīt get it. How did they do that?

Cheers!

Tony Bolero

3pinter
April 29th, 2005, 12:38 PM
publish your .swf 100%,

and give the mc's._x coordinates of stage.width...

//upper right
myMc._x = stage.Width
mcMy._y = stage.Height

:smirk:

tranism
April 29th, 2005, 01:55 PM
publish your .swf 100%,

and give the mc's._x coordinates of stage.width...

//upper right
myMc._x = stage.Width
mcMy._y = stage.Height

:smirk:

WOW thats cool!
What if I have certain movieclips that I want to be able to scale along with the browser window but when the browser window reaches a certain size, the movieclips lock in place and no longer scale with it. possible?

3pinter
April 30th, 2005, 03:48 AM
You should add an 'onEnterFrame' to it.... or even better (uses less PCU..) use a listner!

:smirk:

Tony Bolero
May 2nd, 2005, 03:21 AM
Thank you!