topical media & game development

talk show tell print

professional-flex-code-12-MyObjectComp.mx

professional-flex-code-12-MyObjectComp.mx [swf] flex


  <?xml version="1.0"?>
  <mx:Object xmlns:mx="http://www.adobe.com/2006/mxml" implements="mx.core.IMXMLObject">
    <mx:Script>
      <![CDATA[
        private var total:Number;
        public var a:Number;
        public var b:Number;
        // You must define the initialized() method when implementing IMXMLObject.
        public function initialized(document:Object, id:String):void{
          total=a+b;
        } 
        public function getTotal():Number{
          return total;
        }
      ]]>
    </mx:Script>
  </mx:Object>


(C) Æliens 04/09/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.