Skip to Content
Teach Yourself Visually™ Flash® CS4 Professional
book

Teach Yourself Visually™ Flash® CS4 Professional

by Keith Butters
February 2009
Beginner
368 pages
10h 30m
English
Visual
Content preview from Teach Yourself Visually™ Flash® CS4 Professional
Introducing
ActionScript
216
Variables
A variable is a place for your script to store a piece
of information. In Flash, you use the
var keyword to
declare a variable. It is also a best practice to add
the variable
type to your declaration. To declare any
variable, you should use the syntax:
var <variable_name>:<variable_type> =
value;
For example, to have Flash remember you have 100
tomatoes, you could write the statement:
var numberOfTomatoes:Number = 100;
Frame Actions
In Flash, you can create actions that are triggered
when the play head reaches a particular keyframe
of your movie. Most of the time, frame actions are
used to tell movie clips to stop or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adobe Flash CS4 Professional on Demand

Adobe Flash CS4 Professional on Demand

Steve Perspection, Inc. Johnson

Publisher Resources

ISBN: 9780470344743Purchase book