Action Scripting 3.0 | Alejandra Jarabo |
Media Arts & Technologies. Santa Barbara City College |
ACTION SCRIPTING STRUCTURES |
DOT SYNTAX | |||||||||||||||||||||||||
Dot Syntax is a formatting convention to create quick and efficient phrases that refer to buttons, movie clips and other objects. The “dot” • is used to indicate the properties or methods related to an object (there is no space in between the elements and the dot) |
|||||||||||||||||||||||||
| |||||||||||||||||||||||||
WHY NAMING A SYMBOL'S INSTANCE ON STAGE | |||||||||||||||||||||||||
Animate/Action Scripting you can code an EventListener (using DOT SYNTAX) that gets attached to a Button OR a Movieclip on Stage. In any of those cases you will have to name the instance of the Symbol on Stage through the Properties Panel Before you write the code. The reason for this is that you might have created several copies of the same symbol, in the same project, on the same frame on Stage. It is a good idea to name instances through this naming convention: |
|||||||||||||||||||||||||