|
|||
|
Hi again ...
I have no idea what i'm doing wrong. I want to get the size of my Window. I know that i could use the Stage Object from flash but im wondering whats wrong with my code: Code:
import SWFKit.* var wnd = getMainWnd(); trace(wnd.width); Code:
import SWFKit.* var wnd = Global.getMainWnd(); trace(wnd.width); The Stage.width is 550px but he says 960. Thats my screenresolution, but if i do the same with the high its a totaly differnet number. (not my screenresolution or anything specific) |
|
|||
|
The width of the main window is not the width of the stage of the swf file. The main window may have borders, and the swf file that it is playing may not in the original size, say, may be zoomed in.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|