如何使用flex 4.6 spark模板来设置应用程序的宽度和高度?
Put them into your Main MXML file like:
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
closing="appClosing(event)"
width="1280" height="720"
>
</s:WindowedApplication>
Assuming you want your application to take up the entire browser window you will include the following attributes in your topmost MXML tag:
width="100%"
height="100%"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.