Advanced ActionScript 3.0 for Adobe Flash and Flex
Description
This Advanced ActionScript 3.0 for Flash 9 and Flex 3 is a 3 day course teaching the ActionScript 3.0 programming language from the ground up, using Adobe Flex Builder 2 as a working environment. The course begins with basic syntax, variable declaration and data types; moves through iteration and control structures; then covers basic and intermediate object-oriented programming structures and event handling, while introducing the concept of design patterns. The course prepares developers to implement object-oriented solutions using ActionScript 3 (Flex 3 and/or Flash 9), both of which assume prior knowledge of object oriented programming fundamentals.
Audience
To get the most out of this Adobe ActionScript 3.0 course, you should:
- Have basic familiarity with XML
- Have basic exposure to any programming or scripting language
- Be prepared to learn object oriented programming using hand-typed code
Course Length
3 Days ($1,395)
Course Outline
Unit 1: ActionScript 3.0 Syntax
- Understanding basic syntax
- Case sensitivity
- Dot operator
- Semi-colons
- Comments
- Parentheses, braces, and brackets
- Language keywords
- Literals
- Declaring variables and their type
- Declaring a variable
- Declaring the data type of a variable
- Data type conversion
- Declaring and casting variables in the test console
- Using language operators
- Understanding operator precedence
- Mathematical operators
- Concatenation operator
- Assignment operators
- Working with aggregate data
- Instantiating objects
- Creating and populating instances of the Array class
- Working with multi-dimensional arrays
- Manipulating arrays
- Working with generic objects ("associative arrays")
- Representing two-dimensional data with object arrays
- Populating components with arrays
Unit 2: ActionScript 3.0 Control Structures
- Manipulating String data
- Using String properties and methods
- Using the Alert component
- Importing a class
- Displaying a simple Alert
- Using Conditional Statements
- Writing comparative expressions
- Testing comparative expressions
- Understanding logical operators
- Nesting conditional statements
- Using conditions to validate user input
- Using switch/case statements
- Using the Date class
- Creating Date objects
- Using Date class methods
- Working with iteration (looping) statements
- Using for statements
- Using while statements
- Using do .. while statements
- Using for .. in statements
- Using for each .. in statements
- Using break statements inside loops
- Writing and using user defined functions
- Learning function statement syntax
- Noting function literal syntax
- Working with variables in functions
- Working with function arguments (parameters)
- Referring to arguments dynamically
- Returning data from a function
- Setting the access modifier of a function or variable
- Separating and including ActionScript and MXML files
Unit 3: ActionScript 3.0 Custom Classes
- Introducing Object Oriented Programming Terminology
- Writing a class definition
- Choosing and using the class name
- Packaging your class files
- Declaring class properties
- Controlling access to properties
- Assigning default property values
- Defining a class and creating objects from it
- Declaring class methods
- Controlling access to methods
- Encapsulating object data
- Understanding the Value Object design pattern
- Re-using code through inheritance
- Extending a base class
- Guaranteeing behavior with interfaces
- Writing and using an interface
- Persisting local data
- Understanding static methods
- Storing data using the static SharedObject class