Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
- applicationComplete="add()">
- <fx:Script>
- <![CDATA[
- private function add() : void
- {
- this.skin.addEventListener( MouseEvent.CLICK, loseFocus, false );
- }
- private function loseFocus( e : MouseEvent ) : void
- {
- trace( e.target );
- if ( e.eventPhase == EventPhase.AT_TARGET )
- {
- this.focusManager.deactivate();
- trace( "STOP" );
- }
- }
- ]]>
- </fx:Script>
- <fx:Declarations>
- <!-- Place non-visual elements (e.g., services, value objects) here -->
- </fx:Declarations>
- <s:NumericStepper x="76" y="75"/>
- </s:Application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement