topical media & game development

talk show tell print

actionscript-book-SpinningMoon-SpinningMoon.mx

actionscript-book-SpinningMoon-SpinningMoon.mx [swf] [flash] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application
          xmlns:mx="http://www.adobe.com/2006/mxml"
          layout="absolute"
          creationComplete="initApp()"> 
  
          <mx:Script>
                  <![CDATA[
                          //import com.example.programmingas3.moon.MoonSphere;
                          import flash.display.StageAlign;
                          import flash.display.StageScaleMode;
  
                          private function initApp():void {
                                  var moon:actionscript_book_SpinningMoon_com_example_programmingas3_moon_MoonSphere = new actionscript_book_SpinningMoon_com_example_programmingas3_moon_MoonSphere();
                                  function showMoon(event:Event):void
                                  {
                                          container.addChild(moon);
                                  }
                                  moon.addEventListener(Event.COMPLETE, showMoon);
                          }                        
                  ]]>
          </mx:Script>        
          
          <mx:UIComponent id="container" />
  </mx:Application>
  


(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.