Air mobile background color and size

Hi,
How i can change the background color & stage size of an air for mobile project? i tried with SWF(width, height...) but doesnt work. i cant find the way to do that whith the IDE.
any suggestions???

1 comment
Comment actions Permalink

Size is defined by mobile device screen resolution. If you are running mobile app on the emulator - open corresponding run configuration (Run | Edit Configurations...) and select predefined emulator with screen size you need or select 'Other...' and specify any screen size.
Background color is set from code - it is not related to the IDE. For example if you develop view-based app you may setup it like this:

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" backgroundColor="0x00FF00">
...
</s:View>

0

Please sign in to leave a comment.