Thursday, June 25, 2009

Writing Action Script in Flex

Writing Action Script in Flex

Example of a .mxml file :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="TryAS()">
    <mx:Script>
        <![CDATA[
            import Puzzles.*;
            public function TryAS():void{
                trace("InitPuzzles");
            }
       ]]>
    </mx:Script>

</mx:Application>

No comments: