topical media & game development 
  
 
 
 
 
  
    
    
  
flex-click-me.mx
flex-click-me.mx
[swf]
 
 flex
  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application 
      xmlns:mx="http://www.adobe.com/2006/mxml" 
      width="600" height="400"
      horizontalAlign="center" verticalAlign="middle" 
      xmlns:ae="drawer.*" 
  >
      <mx:Script>
          <![CDATA[
              import flash.events.MouseEvent;
          
              private function clickHandler ( event:MouseEvent ):void
              {
                  myLabel.text = "hello world";
              }
          ]]>
      </mx:Script>
      
      <mx:Panel 
          title="hello world" horizontalAlign="center"
          paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10" 
      >
          <mx:Label id="myLabel" width="180" fontWeight="bold" fontSize="24"/>
          <mx:Button id="myButton" label="click me!" click="clickHandler(event);" />
      </mx:Panel>
  </mx:Application>
  
  
  
  
(C) Æliens 
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. 
In case of other copyright issues, contact the author.