Am working on flash cs6 and AIR 14.I developed one app i want to adjust that app to all android and ios devices.for that i want to change my stage size dynamically according to screen resolution of device.Is it possible to do that.if yes how ?
相关问题
- garbage collection best practices
- How to load flex swf from flash?
- JTextField resizing upon minimize
- FlashDevelop Haxe (Flash) debugger
- Detecting user's camera settings
相关文章
- Auto-Resize UITableView Headers on Rotate (Mostly
- Resize Tkinter Listbox widget when window resizes
- Are there any benefits when using final in AS3?
- wpf resize complete
- Trace on Chrome/Browser console
- as3 ByteArray to Hex (binary hex representation)
- About Collision detection alghorithms in AS3
- Resize image before upload, but upload synchronous
Yes, It is possible.
First thing you need to do is the following: (as soon as your application has access to the stage)
This will make your stage not scale and become the full size of it's container - in your case an AIR window.
For mobile AIR, this will make it the screen resolution of the device. Though on some high-density displays (iPhone) by default you may get half the native resolution of the device, but scaled x2 so it's still fullscreen. You can adjust this when you build the application in AIR if needed.
For desktop AIR, you can programmatically change the stage by resizing the
NativeWindow
.