Posted by d-train in SWF Studio V3 on Apr 12 2016, 03:39 am

Hi All

I have set my application to 900 x 600 and it works fine on a PC or laptop but on a tablet if the user changes the orientation of the tablet and the resolution therefore changes from say 1368 x 768 to 768 x 1368 the right side of the application is cut off, so that when it changes back to 1368 x 768 it still isn't there and because I have disabled the maximise button, they are unable to get the application back to how it should look.

So my question is, is there a way I can I detect the autorotate that occurs and then shrink my app to accommodate and then when it detects the autorotate back to landscape it resizes back to standard size?

thanks

D


Posted by northcode in SWF Studio V3 on Apr 12 2016, 04:04 am

Have you tried App.setNotify with the onDesktopChange notification? It works if the size of the desktop changes (manually or programmatically) so in theory it should work for an orientation change on a tablet device.