Flash module debug window and stage.stageWidth not match

I am debug a mobile flash application in different size.

When debug on emulator, the stageWidth and stageHeight not match the selected device type.

I need to set the compile option -default-size each time when test on different device type.

I suggest for future version can add the -default-size compiler option for each different device type.


See this thread to make your code not dependent on emulator screen size.


Thanks for your suggestion. But this method have some delay on RESIZE event to fire. It will have about 1 second black screen on mobile device.


As far as I understood there's no problem with stageWidth and stageHeight on the real device, only on emulator, right?


Yes. So, i may need to detect if running on emulator and use the resize event methods. Thanks.


Please sign in to leave a comment.