2. Content
• Development tools
• About ActionScript
• What is a FLA file and what do you eat it with?
• ActionScript + FLA file
• Some magic: animations
• Compilation and output
5. Java vs ActionScript syntax
• Variable definition:
o Java
String bar = "foo";
o AS
var bar:String = "foo";
• Method definition
o Java
void baz(int i) {}
o AS
function baz(i:int):void {}
6. Java vs ActionScript syntax (2)
Collections:
• Java -> Map
o HashMap: HashMap.put(...),HashMap.get(...)
• AS -> Associative Arrays
o var friends:Array = new Array();
o friends["best"] = "Bill";
o var bestFriend:String=friends["best"];
7. FLA file
• What is a FLA file?
• Structure of FLA
• Rich set of designer tools
• Basic visual objects
8. Actionscript + FLA file
• Do not embed code into FLA!
• Classpaths
• Stage exported to document root class
• FLA visuals exported to ActionScript classes
• Objects on stage - instantiated
• Output binary - .swf file
• Embedding binary to HTML