List Info

Thread: change position when resizing browser




change position when resizing browser
country flaguser name
United Kingdom
2008-05-14 14:11:36
Hi, everyone out there,

I am trying to create an effect which allow objects move to
certain  
point when the user drag to resize their browser. I have
seen it alot  
in the web, and really can't get my head round it.

here is an example of what I am talking about:

http://www.starsailor.com/


Thankz in advance.

Keni

_______________________________________________
osflash mailing list
osflashosflash.org
http://osflash.org/mailman/listinfo/osflash_osflash.org

Re: change position when resizing browser
country flaguser name
United States
2008-05-14 14:44:09
Your html object has to be set to 100% width and height and
then in  
your flash document you have to listen for the stage's
Event.RESIZE  
event. When this is called you draw things relative to the 

stage.stageWidth and height. I know this was very simplified
but this  
is the concept.


On May 14, 2008, at 3:11 PM, Chi Kin lam wrote:

> Hi, everyone out there,
>
> I am trying to create an effect which allow objects
move to certain
> point when the user drag to resize their browser. I
have seen it alot
> in the web, and really can't get my head round it.
>
> here is an example of what I am talking about:
>
> http://www.starsailor.com/

>
> Thankz in advance.
>
> Keni
>
> _______________________________________________
> osflash mailing list
> osflashosflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org


_______________________________________________
osflash mailing list
osflashosflash.org
http://osflash.org/mailman/listinfo/osflash_osflash.org

Re: change position when resizing browser
user name
2008-05-14 15:04:10
Also remember to have stage.scaleMode =
StageScaleMode.NO_SCALE.

-- 
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/

_______________________________________________
osflash mailing list
osflashosflash.org
http://osflash.org/mailman/listinfo/osflash_osflash.org

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )