ActionScript 3.0 Tip of the Day --------------------- The release of Flex Builder 2 is around the corner and though the next version of Flash is still a ways away, ActionScript 3 will be a big part of Flex 2 and the impending release of Flash Player 9. ActionScript 3 is the next step forward and to help with the transition (for those of you deciding to make it), I thought, since I've been working with AS3 a bit lately, I'd make a new [b]Tip of the Day[/b] thread for [b]ActionScript 3[/b]. Tips: [list=1] [*][font=courier]06-14-06: [/font] [/list] --------------------- - package keyword - [adv] local file access - helper classes - definitions in class body are now unique to instances (check) - function scripts [v] scope binding (class method scope cannot be changed even using call/apply) - constants [v] stage.framerate - stage background color - mouseEnabled and mouseChildren for sprites as buttons and textfields - xml - flash.utils.describeType - new keywords/operators (as, for each ...) - Void is now void - new events - Timer class - SimpleButton ------- ActionScript 3 now supports a new class called SimpleButton (flash.display.SimpleButton). This class lets you create button symbols in ActionScript - something previously not possible older versions of ActionScript. [as]var myButton:SimpleButton = new SimpleButton();[/as] The SimpleButton class contains 4 properties that relate to the various states of a button; upState, overState, downState, and hitAreaState. Create display objects for these states and assign them to those properties to create a fully functional simple button using ActionScript 3. -------