Simple1.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  styleName = "plain"
    layout="absolute"
    xmlns="*"
    frameRate="30"
    width="640"
    height="480"
    creationComplete="initApp()"
    enterFrame="enterFrame(event)">

    <mx:Script>
        <![CDATA[
            public function initApp():void
            {
                canvas.init();
            }
            public function enterFrame(event:Event):void
            {
                canvas.onTick();
            }
        ]]>
    </mx:Script>

  <SimpleCanvas id="canvas" width="100%" height="100%" themeColor="#ffffff" />
</mx:Application>

Comments