Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2010
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  3.                xmlns:s="library://ns.adobe.com/flex/spark"
  4.                xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
  5.                applicationComplete="add()">
  6.    
  7.     <fx:Script>
  8.         <![CDATA[
  9.            
  10.             private function add() : void
  11.             {
  12.                 this.skin.addEventListener( MouseEvent.CLICK, loseFocus, false );
  13.             }
  14.            
  15.             private function loseFocus( e : MouseEvent ) : void
  16.             {
  17.                 trace( e.target );
  18.                 if ( e.eventPhase == EventPhase.AT_TARGET )
  19.                 {
  20.                     this.focusManager.deactivate();
  21.                     trace( "STOP" );
  22.                 }
  23.             }
  24.         ]]>
  25.     </fx:Script>
  26.     <fx:Declarations>
  27.         <!-- Place non-visual elements (e.g., services, value objects) here -->
  28.     </fx:Declarations>
  29.     <s:NumericStepper x="76" y="75"/>
  30. </s:Application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement