ActionScript 3.0 for Adobe Flash CS4 Class 2
| Duration: | 1 day |
| Prerequisite: | ActionScript 3.0 for Adobe Flash CS4 Class 1 |
| Course Materials: | Course manual with CD containing exercises |
| Prices: | $260 each for 1 student (one-on-one training) $230 each for 2 to 3 students $200 each for 4 to 6 students $200 for the first 6 students, $125 for each additional student |
| Description: | This is the second class of our ActionScript course. We start where the first class left off and learn more advanced concepts of ActionScript. |
Creating Preloaders in ActionScript 3.0
- Tools in the testing environment
- Bandwidth Profiler
- Simulate Download
- Creating a text field and progress bar to track loading
- Inserting ActionScript to track progress of the UILoader component
- Adding event listeners for PROGRESS and COMPLETE
- Creating the progressHandler() function
- Adding the completeHandler() function
- Controlling the frames of a MovieClip to reflect loading progress
- Adding ActionScript for the loadAnimation clip
Using Arrays and Loops in ActionScript 3.0
- Examining the starting file
- Adding MovieClip instances to the stage from the Library
- Setting the linkage properties of a MovieClip
- Adding a new instance of the Block class to the stage
- Generating multiple instances with a for loop
- Creating the for loop
- Modifying a for loop’s behavior with variables
- Adding event listeners to the Block instances
- Creating animation using ENTER_FRAME
- Adding the ENTER_FRAME listener
- Using an event’s target property
- Creating the rotateUp() function
- Adding an else statement
- Adding the testDone() function
- Introducing the array
- Using the push() method
- Checking the properties of elements in the rArray
Controlling Sound with ActionScript
- Examining the starting file
- Adding sliders to the project
- The Sound, SoundChannel, and SoundTransform classes
- Creating Sound, SoundChannel, and SoundTransform instances
- Adding more variables
- Creating the songList array
- Setting the song titles using a for loop
- Modifying text fields with the replace() method
- Making the sliders invisible until needed
- Programming the buttons to select songs
- Adding event listeners to the song buttons
- Creating the chooseSong() function
- Creating a Sound class instance and checking for existing instances
- Loading a sound into a Sound instance
- Creating the SoundChannel and SoundTransform instances
- Controlling the visibility of the volume and pan controls
- Adding a listener for the ID3 tags of an MP3 file
- Creating the id3Handler() function
- Adding the Artist and Album information
- Adding a text format object
- Adding the slider controls
- Adding the volumeChange() and panChange() functions
Working with an XML Playlist
- Understanding the basic structure of an XML file
- Examining the starting file
- Replacing the songList array with an XML instance
- Creating new XML and URLLoader instances
- Loading an external playlist using the URLLoader class
- Responding to COMPLETE and IO_ERROR events
- Moving the event listeners into the xmlLoaded() function
- Creating the setSongs() function
- Accessing song title and artist from the XML data
- Setting the song clips’ title and artist fields
- Adding a call to the setSongs() function
- Updating the chooseSong() function
- Creating hyperlinks using XML data
- Navigating through the song list
- Updating the song buttons
Using ActionScript and Components to Control Video
- Adding the FLVPlayback component
- Setting FLVPlayback properties in Flash
- Setting the FLVPlayback controls
- Setting skin color and transparency
- Adding ActionScript control of FLVPlayback properties
- Adding a slider to control transparency
- Adding the initial slider ActionScript
- Working with color
- Adding the ColorPicker component
- Setting the skinBackgroundColor
- Adding the FLVCaptioning component
- Examining the captions.xml file
- Adding the FLVCaptioning component
- Playing multiple video files from an XML playlist
- Examining the vidlist.xml file
- Adding a title text field
- Loading the vidlist.xml file with ActionScript
- Creating the xmlLoaded() function
- Creating the changeVid() function
- Using the full-screen publish settings
