2011-07-18 8 views

答えて

0

がアクティベートをチェックし、イベントハンドラを無効化:私は:)助けるため

<?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> 

+0

おかげで、私は、Adobe Flash上​​のAIRアプリ開発のためのプロ働きます。私はアクティブ化と非アクティブ化を検索し、私が探していたEvent.ACTIVATEとEvent.DEACTIVATEを見つけました。 – user381930

関連する問題