Cool new feature of Flash Professional 9 ActionScript 3 Preview: Document Class.
Install Flash 9 Preview, create a new document, and in the Properties Panel, you’ll see a new field, “Document Class”. You can enter the name of an AS3 class here, as long as it’s in your class path, and it will serve as the main class of your swf. The class you uses must extend MovieClip or Sprite (or something else that extends one of those).
Now, when you create a Brevity App, what actually gets created is an AS3 class that extends org.brvty.core.BrevityApp, which extends Sprite. This means that Brevity integrates nicely with Flash 9 AS3 Preview.
1. Create a Brevity App with the Brevity IDE. Save it and parse it. This will create an AS3 class.
2. Create a new movie in Flash 9. Save it in the same directory as the Brevity App.
3. In the Document Class, put the name of your Brevity App, which should be the same as the class.
4. In Publish Settings, ActionScript 3.0 Settings, add a new class path and set it to the “classes” directory of your Brevity install.
5. Publish the swf in Flash 9 as usual.
Note that properties in the setup() function of your Brevity App will be ignored in this case. Background color, movie size and frame rate are all set in the IDE.
Flash 9 Player final is released today.
Thats a great feature. Up until now Ive allways had a static class which i reference from somewhere on the main timeline itself, like
App.LetsGo();
Allways felt a little odd to me.
Great work Keith. I’m looking forward to your session at Flash on the Beach!
Great!!!