Skip to main content
Participant
May 14, 2007
Question

Flash Re-sizing to Browser window Size

  • May 14, 2007
  • 1 reply
  • 204 views
Hey,

Below is the code i am using to resize an object on my flash stage to be the same size as the users browser window. It rezises in Proportion the the browser window - so an image will never look skewed. It works really well, but the object only resizes to the size of the browser window when it is changed i.e it looks out of place until you resize the window. Any thought on how i can get the object to resize without the user having to adjust the screen. can i set stageListener.onResize = function() { to start the function "onLoad" or something like that?

i hope this makes sense
code attached
Thanks

Nick

This topic has been closed for replies.

1 reply

Participating Frequently
May 14, 2007
u have to call onResize function from beginning.
Something like :