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"

3 comments:

  1. Naming rules for variable names and instance names:

    1. case sensitive
    2. can contain only numbers, letters and underscores
    3. cannot begin with a number

    ReplyDelete
  2. Objects and Methods

    In Action Script 3.0, you will work with objects. Objects are abstract data types that help you do certain tasks. For example, a sound object may help you control sound. A date object may help you manipulate time related data. (The button symbols that you created in chapter 6 hand-on exercises are also also objects - they are Button objects.)

    Every object should be named. An object that has a name can be referenced and controlled with ActionScript.

    Buttons on the stage are reffered to as instances.

    ** The book says that: " In fact, Instances and Objects are synonymous." ......I'm not sure I agree with this statement........

    ReplyDelete
  3. Methods

    Methods are the keywords that result in action. Methods are the doers of ActionScript, and each kind of object has its own set of methods.

    Much of learning ActioScript is learning the methods for each kind of object. For example, two methods associated with a MovieClip object are stop() and gotoAndPlay().


    Functions

    A function is a group of statements that you can refer to by name, allowing you to run the same set of statements without having to type them repeatedely.

    reference: "Adobe Flash CS5 Classroom in a Book"

    ReplyDelete