0
air appを開いたまま誰かが別のウィンドウ(ノートパッドなど)に切り替えるかどうかを調べるには、私はuser switch form air appを検出する方法を探していました。adobe air appから別のウィンドウへの切り替えを検出する
air appを開いたまま誰かが別のウィンドウ(ノートパッドなど)に切り替えるかどうかを調べるには、私はuser switch form air appを検出する方法を探していました。adobe air appから別のウィンドウへの切り替えを検出する
がアクティベートをチェックし、イベントハンドラを無効化:私は:)助けるため
<?xml version="1.0" encoding="utf-8"?>
<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"
deactivate="deactivateHandler(event)"
activate="activateHandler(event)"
>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
protected function deactivateHandler(event:Event):void
{
mx.controls.Alert.show('you left!');
}
protected function activateHandler(event:Event):void
{
mx.controls.Alert.show('you came back!');
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
おかげで、私は、Adobe Flash上のAIRアプリ開発のためのプロ働きます。私はアクティブ化と非アクティブ化を検索し、私が探していたEvent.ACTIVATEとEvent.DEACTIVATEを見つけました。 – user381930