如何做出無邊框的AIR

AIR可自定視窗的外型,透過三項參數就可取消原本的系統外框,首先是describe檔的 systemChrome要為none,使其改用FlexChrome,再來要把transparent設為true,讓沒有顏色的背景為透明,之後在到AIR的mxml,把WindowedApplication的showFlexChrome屬性設為false,如此一來就做出無視窗的AIR了

describe

<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
<systemChrome>none</systemChrome>
<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
<transparent>true</transparent>

mxml

<mx:WindowedApplication 
xmlns:mx="http://www.adobe.com/2006/mxml" 
layout="absolute" 
showFlexChrome="false">

0 意見 :: 如何做出無邊框的AIR