ActionScript: Your visual blueprint for creating interactive projects in Flash CS4 ProfessionalISBN: 978-0-470-48194-3
Paperback
384 pages
July 2009
This title is out-of-print and not currently available for purchase from this site.
|
1 INTRODUCING ACTIONSCRIPT.
Introducing Flash.
Understanding Flash Player 10.
Introducing ActionScript 3.0.
Create a New Flash Movie.
Using the Actions Panel.
2 INTRODUCING THE BASIC SYNTAX OF ACTIONSCRIPT.
Understanding Object-Oriented Programming.
Understanding ActionScript Syntax Rules.
Create a Variable.
Understanding Data Types.
Test Your Flash Movie.
Concatenate Strings.
Trace Variables.
Create an Array.
Add and Remove Elements from an Array.
Create an Array in an Array.
Create a Generic Object.
Add Constants.
Add Comments to Your Code.
Understanding Coding Best Practices.
3 CONTROLLING OBJECTS ON THE STAGE.
Draw Shapes in Flash.
Introducing Symbols.
Create a Symbol.
Insert and Name an Instance.
Set Instance Properties Using the Properties Panel.
Set Instance Properties in Code.
4 WORKING WITH NONVISUAL CLASSES.
Perform Simple Mathematical Operations.
Perform Complex Mathematical Operations with the Math Class.
Generate Random Numbers.
Create Instances of the Date Class.
Perform Math on Dates.
5 WRITING FUNCTIONS.
Write a Function.
Call a Function.
Pass Data to Functions.
Return a Value from a Function.
6 CREATING CUSTOM CLASSES.
Create a Package.
Create a New ActionScript File.
Create a Custom Class Skeleton.
Define Properties of the Class.
Create a Constructor.
Define a Method.
Extend a Class.
Using a Custom Class.
Define a Document Class.
Get and Set Class Properties.
Add a Static Property to a Class.
7 USING EVENTS.
Create an Event Handler.
Call an Event from a Button.
Define Events in a Custom Class.
Remove Event Listeners.
Using the Target Property.
8 CONTROLLING THE TIMELINE IN CODE.
Stop a Movie.
Go to a Specific Frame in a Movie.
Add Code to a MovieClip’s Timeline.
Control a MovieClip from the Main Timeline.
Work with the Stage in Code.
Add MovieClips to the Stage through Code.
Remove Elements from the Stage.
9 WORKING WITH TEXT.
Create a Dynamic Text Field Visually.
Create a Dynamic Text Field in Code.
Create an Input Text Field Visually.
Create an Input Text Field in Code.
Work with TextField Events.
Find Characters within Strings.
Manipulate Strings.
Get Pieces of Strings.
Convert Data Types.
10 FORMATTING TEXT.
Understanding the TextFormat Class.
Apply Formatting to a Text Field.
Using HTML Text.
11 MAKING DECISIONS IN CODE.
Write an If Statement.
Using Else and Else If Clauses.
Test Multiple Conditions.
Replace If/Else Clauses with a Switch Statement.
12 LOOPING OVER CODE.
Write a For Loop.
Write a While Loop.
Loop over an Array.
13 ANIMATING IN CODE.
Using the EnterFrame Event.
Animate MovieClips That Scale and Fade.
Change the Speed of Animation.
Using the Timer Class.
Create Tweens in Script.
Ease Tweened Animation.
Allow Users to Drag and Drop Objects.
Animate in 3D.
14 ADDING KEYBOARD CONTROLS.
React to a Key Press.
Using Keyboard Constants.
15 WORKING WITH SOUND.
Understanding Sound in Flash.
Add a Sound to the Library and Play It.
Load and Play an External Sound.
Avoid Errors Due to Loading Delays.
Pause and Resume Sounds.
Control Sound Volume.
Display Information about Sound Files.
16 WORKING WITH VIDEO.
Convert Video to Flash Video.
Using the FLVPlayback Component Visually.
Using the FLVPlayback Component in Code.
Go Full Screen.
Add Closed Captioning.
Style Closed Captions.
17 WORKING WITH DATA.
Understanding XML and E4X.
Embed XML in ActionScript.
Read XML.
Filter XML.
Write XML.
Load XML at Runtime.
18 EXCHANGING DATA WITH A SERVER.
Download the Apache Web Server.
Install the Apache Server.
Download Adobe ColdFusion.
Install ColdFusion.
Download PHP.
Install PHP.
Send Data to the Server.
Create XML with ColdFusion.
Create XML with PHP.
Read Data from the Server.
19 DRAWING VECTORS IN CODE.
Draw Lines in Code.
Draw Curves in Code.
Draw Shapes in Code.
Create Fills.
Transform Visual Objects.
Add Filters through Code.
Cache Vectors As Bitmaps.
Draw a Bitmap.
Add an Image to the Library and Create a Bitmap from It.
20 WORKING WITH AIR.
Understanding AIR.
Create a New AIR Application.
Digitally Sign Your Application.
Detect User Inactivity.
Allow Users to Save Data.
APPENDIX A: ACTIONSCRIPT CLASS REFERENCE.
APPENDIX B: ACTIONSCRIPT OPERATORS REFERENCE.
APPENDIX C: SUPPORTED HTML TAGS.
INDEX.