Can you get the size of the Flash object in Actionscript?
Posted
by futuraprime
on Stack Overflow
See other posts from Stack Overflow
or by futuraprime
Published on 2010-05-20T17:54:08Z
Indexed on
2010/05/20
18:10 UTC
Read the original article
Hit count: 162
actionscript-3
|flash
I'm working with a Flash movie and I'm trying to get the size of the player itself (i.e. the height and width Flash has to work with from the object/embed tag). As far as I can tell, Flash doesn't make this available to ActionScript.
I'm able to use this.root.loaderInfo.width
and this.root.loaderInfo.height
to get the "intended" size of the flash movie (what's specified on export), but if the dimensions are different on the page, this isn't helpful.
© Stack Overflow or respective owner