<s:Window>
tag inherits all of the tag
attributes of its superclass and adds the following tag attributes:
<s:Window Properties alwaysInFront="false" backgroundColor="white" colorCorrection="default" maxHeight="2880 less the height of the system chrome" maximizable="true" maxWidth="2880 less the width of the system chrome" menu="null" minHeight="dependent on the operating system and the AIR systemChrome setting" minimizable="true" minWidth="dependent on the operating system and the AIR systemChrome setting" resizable="true" showStatusBar="true" status="" systemChrome="standard" title="" titleIcon="null" transparent="false" type="normal" visible="true" width="100" Effects closeEffect="No default" minimizeEffect="No default" unminimizeEffect="No default" Events applicationActivate="No default" applicationDeactivate="No default" close="No default" closing="No default" displayStateChange="No default" displayStateChanging="No default" moving="No default" networkChange="No default" resizing="No default" windowActivate="No default" windowComplete="No default" windowDeactivate="No default" windowMove="No default" windowResize="No default" />]]>
Window コンテナは、他のレイアウトコンテナ内では使用できない、という点で特殊なコンテナです。spark.components.Window コンポーネントは、MXML ドキュメントの最上位コンポーネントである必要があります。
Window コンポーネントを使用してネイティブウィンドウを定義するための最も簡単な方法は、MXML ドキュメントを作成し、そのドキュメントの最上位タグとして
アプリケーションコードで、Window サブクラスのインスタンスを画面に表示するには、まずコード内でそのクラスのインスタンスを(変数を定義し、
Window クラスの一部のプロパティでは、そのプロパティを先に設定してから
ステータスバーは、アプリケーションまたはアプリケーションウィンドウのスキンとして WindowedApplicationSkin クラスまたは SparkChromeWindowedApplicationSkin クラスを使用している場合にのみ表示されます。
このプロパティは、いったんウィンドウが開かれた後には読み取り専用になります。
デフォルト値は、
このプロパティは、ウィンドウが開かれた後には読み取り専用になります。
このプロパティは、いったんウィンドウが開かれた後には読み取り専用になります。
デフォルト値は、
<mx:WindowedApplication>
tag inherits all of the tag
attributes of its superclass and adds the following tag attributes:
<mx:WindowedApplication Properties alwaysInFront="false" autoExit="true" backgroundFrameRate="1" dockIconMenu="null" maxHeight="2880 less the height of the system chrome" maxWidth="2880 less the width of the system chrome" menu="null" minHeight="dependent on the operating system and the AIR systemChrome setting" minWidth="dependent on the operating system and the AIR systemChrome setting" showStatusBar="true" status="" systemTrayIconMenu="null" title="" titleIcon="null" Effects closeEffect="No default" minimizeEffect="No default" unminimizeEffect="No default" Events applicationActivate="No default" applicationDeactivate="No default" close="No default" closing="No default" displayStateChange="No default" displayStateChanging="No default" invoke="No default" moving="No default" networkChange="No default" resizing="No default" windowActivate="No default" windowComplete="No default" windowDeactivate="No default" windowMove="No default" windowResize="No default" />]]>
WindowedApplication は、2 つの役割を果たします。これは <mx:WindowedApplication> タグの代わりに使用され、Flex ベースの AIR アプリケーションへのエントリポイントとして機能します。また、WindowedApplication はコンテナとして、Flex AIR アプリケーションの最初のウィンドウのレイアウトを定義します。WindowedApplication で定義されたすべてのビジュアルコントロールは、AIR アプリケーションによってロードされる最初のウィンドウのコンテンツになります。
WindowedApplication は、Flex ベースの AIR アプリケーションの最上位アプリケーションです。他の Flex アプリケーションによってロードされるように設計されていません。WindowedApplication で他のアプリケーションをロードする必要がある場合は、これらのアプリケーションのコンテナとして Application クラスを使用します。他のウィンドウが必要な場合は、これらのウィンドウのコンテナとして Window クラスを使用します。
WindowedApplication は、マルチウィンドウアプリケーションのすべてのウィンドウではなく、単一のウィンドウのビジュアルコンテンツのみを表すため、WindowedApplication のインスタンスは、アプリケーション内の他のウィンドウで発生したイベントについてではなく、それ自身のステージおよびウィンドウについての表示関連のイベント(WindowedApplication クラスが InteractiveObject や UIComponent などの表示オブジェクトの基本クラスから継承したイベント)のみを送出します。この点で、FxApplication コンテナがアプリケーションのすべてのウィンドウのイベントを送出する、ブラウザーベースのアプリケーションとは異なっています(ブラウザーベースのアプリケーションでは、技術的にはウィンドウはすべて、単一の Application ステージにレンダリングされる表示オブジェクトです)。
ステータスバーは、アプリケーションまたはアプリケーションウィンドウのスキンとして WindowedApplicationSkin クラスまたは SparkChromeWindowedApplicationSkin クラスを使用している場合にのみ表示されます。