Log event information to TextArea : Event Object « Event « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Event » Event ObjectScreenshots 
Log event information to TextArea
Log event information to TextArea
      

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        import flash.events.Event;
        public function changeEvt(event:Event):void {
            log.text=event.currentTarget.selectedItem.label + " " + event.currentTarget.selectedIndex;
        }
      
    </mx:Script>
    <mx:List width="35" change="changeEvt(event)">
        <mx:Object label="A" data="aa" />
        <mx:Object label="B" data="bb" />
        <mx:Object label="C" data="cc" />
    </mx:List>
    <mx:TextArea id="log" width="150" />
</mx:Application>

   
    
    
    
    
    
  
Related examples in the same category
1.Pass a string and Event object to methodPass a string and Event object to method
2.Cast Event object for only property accessCast Event object for only property access
3.Pass a string and the Event object to the runMove() methodPass a string and the Event object to the runMove() method
4.Define object type as EventDefine object type as Event
5.Access SecurityErrorEvent object's text propertyAccess SecurityErrorEvent object's text property
6.Disables interactivity for events on the first and third PlotSeries objectsDisables interactivity for events on the first and third PlotSeries objects
7.Create event objectCreate event object
8.Event Object PropertiesEvent Object Properties
9.Event type and textEvent type and text
10.Event typeEvent type
w__w___w__.___ja_va__2s.c___o__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.