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.

4 comments

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

0

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.

0

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

0

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

0

Please sign in to leave a comment.