Resize Stage to Browser Size


hi all,

 

i'm wondering how set stage resize relative size of user's browser , keep main movieclip centered.  don't want stage scale, want physical boundaries larger without scaling content.

 

the reason this:  have we'll call "snow" falling in background.  when browser resizes, don't want stage scale , snow flakes bigger or smaller, have stage show more area snow flakes fall.  have snow flakes falling outside current stage boundaries, i'm wondering how make stage boundaries extend dynamically size of browsers.

 

thanks ton!

in publish settings, make sure html option checked under formats tab in html tab select "percent" dimension and "no scale" scale drop down box. use stage.stagewidth , stage.stageheight retrieve stage dimensions while swf loaded in browser position items on stage. note coordinate(0,0) still @ same position depending on original stage dimensions regardless of with/without browser.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO