At the bottpm left of the Actions panel is the Script Navigator. The Script navigator can help you find a particular piece of code.
ActionScript is placed on keyframes on the Timeline, so the Script navigator can be particularly useful if you have lots of code scattered in different keyframes and on different Timelines.
**excerpted from "Flash CS5 Classroom in a Book"
Adobe Flash animation; Dreamweaver website authoring; Photoshop imaging and graphics design; Wordpress blogging and content management system; Web Development
Sunday, November 7, 2010
Flash - ActionScript - the Actions Panel
The Actions Panel is where you write all your code.
Ways to open the actions panel:
1. Windows -> Actions
2. select a keyframe on the timeline and click the "ActionScript icon" on the top right of the Properties inspector.
3. right-click/ctrl-click on any keyframe and select Actions.
4. select keyframe on the timeline and press "F9"
Ways to open the actions panel:
1. Windows -> Actions
2. select a keyframe on the timeline and click the "ActionScript icon" on the top right of the Properties inspector.
3. right-click/ctrl-click on any keyframe and select Actions.
4. select keyframe on the timeline and press "F9"
Flash - ActionScript - automatic help from flash tools
@ color codes:
+ words that have specific meanings in ActionScript, such as keywords and statements, appear in blue as you type them in the Actions panel.
+words that are not reserved in ActionScript, such as variable names, are in black.
+Strings appear in green.
+Comments (which are ignored by ActionScript), appear in gray.
@click the "check syntax icon" to make the tool check the syntax of your script
@click the "auto format icon" to format the script according to conventions, so that your script will be easier to read
**reference: "flash cs5 classroom in a book"
+ words that have specific meanings in ActionScript, such as keywords and statements, appear in blue as you type them in the Actions panel.
+words that are not reserved in ActionScript, such as variable names, are in black.
+Strings appear in green.
+Comments (which are ignored by ActionScript), appear in gray.
@click the "check syntax icon" to make the tool check the syntax of your script
@click the "auto format icon" to format the script according to conventions, so that your script will be easier to read
**reference: "flash cs5 classroom in a book"
Flash - ActionScript - Syntax
scripting syntax
* the dot operator (.) provides a way to access the properties and methods of an object. Type the instance name, followed by a dot, and then the name of the property or method. Think of the dot as a way to separate objects, methods and properties.
* whenever you are entering a string or the name of a file, use quotation marks
--reference: "adobe cs5 flash classroom in a book"
* the dot operator (.) provides a way to access the properties and methods of an object. Type the instance name, followed by a dot, and then the name of the property or method. Think of the dot as a way to separate objects, methods and properties.
* whenever you are entering a string or the name of a file, use quotation marks
--reference: "adobe cs5 flash classroom in a book"
Saturday, November 6, 2010
Flash - ActionScript
Adobe Flash CS5 uses Action Script 3.0, which is a robust scripting language, that can be used to extend the functionality of Flash.
ActionScript, which is similar to JavaScript, allows you to add more interactivity to Flash animations.
You can use ActionScript to attach behaviors to buttons.
You can also use ActionScript to perform simple tasks like stopping an animation..
**reference: "Adobe Flash CS5 Classroom in a Book"
ActionScript, which is similar to JavaScript, allows you to add more interactivity to Flash animations.
You can use ActionScript to attach behaviors to buttons.
You can also use ActionScript to perform simple tasks like stopping an animation..
**reference: "Adobe Flash CS5 Classroom in a Book"
Flash - Naming Instances
Naming instances is a critical step in creating interactive Flash projects.
Naming Rules:
1. Do not use spaces or special punctuation. Underscores are OK.
2. Do not begin a name with a number.
3. Do not use any word that is reserved for a flash actionScript command.
reference: "Classroom in a Book".
Naming Rules:
1. Do not use spaces or special punctuation. Underscores are OK.
2. Do not begin a name with a number.
3. Do not use any word that is reserved for a flash actionScript command.
reference: "Classroom in a Book".
Subscribe to:
Posts (Atom)