Sunday, March 27, 2011

Flash CS5 Code Snippets and Templates in Depth

http://www.lynda.com/Flash-CS5-tutorials/flash-professional-cs5-code-snippets-and-templates-in-depth/67684-2.html

1. Using Simple Code Snippets
1.4 Adding a complex code snippet: set timer + the number of commands
http://www.lynda.com/home/Player.aspx?lpk4=72916


1.6 Showing and hiding movie clip instances
http://www.lynda.com/home/Player.aspx?lpk4=72918

1.8 Handling keyboard events
http://www.lynda.com/home/Player.aspx?lpk4=72920

2. Navigating and Animating with Code Snippets
2.1 Adding Play and Stop actions - stop a movie clip on the first keyframe

2.2 Handling the enterFrame event
http://www.lynda.com/home/Player.aspx?lpk4=72923
set a limit to the moving distance
remove EventListener

2.3 Managing multi-scene presentations
http://www.lynda.com/home/Player.aspx?lpk4=72924
MovieClip(this.root)

2.4 Adding drag and drop (multiple objects)
http://www.lynda.com/home/Player.aspx?lpk4=72925
mc.buttonMode = true; event.currentTarget

2.5 Rotating objects
http://www.lynda.com/home/Player.aspx?lpk4=72926
add an event listener to a function

2.6 Fading objects
http://www.lynda.com/home/Player.aspx?lpk4=72927
sequencing animations by adding an event listener to a function

3. Managing Audio and Video with Code Snippets
3.1 Starting and stopping sounds
http://www.lynda.com/home/Player.aspx?lpk4=72929
control both the animation and sound

3.2 Showing video with FLV Player and ActionScript
http://www.lynda.com/home/Player.aspx?lpk4=72930

3.3 Showing video with NetStream
http://www.lynda.com/home/Player.aspx?lpk4=72931

3.4 Stopping, pausing, and resuming video
http://www.lynda.com/home/Player.aspx?lpk4=72932

3.5 Seeking a cue point
http://www.lynda.com/home/Player.aspx?lpk4=72933

4. Managing Library Symbols and External Content
4.1 Loading external SWF files (that were built with AS3)
http://www.lynda.com/home/Player.aspx?lpk4=72935

4.2 Adding library symbol instances to the Stage
http://www.lynda.com/home/Player.aspx?lpk4=72936
if (mcName == null) {

4.3 Adding library symbol instances to the Stage
http://www.lynda.com/home/Player.aspx?lpk4=72937
loop an array

4.4 Loading external text
http://www.lynda.com/home/Player.aspx?lpk4=72938
mytext.text = textData;