Summary


  • ActionScript has several data types, including Boolean, Function, MovieClip, Number, Object, and String.

  • You should create a procedure when the same actions are repeated within a Flash movie, or when you want to avoid storing long action lists within Button instances.

  • A function is defined with the function action, in the format function name (arguments){actions}.

  • Arrays can manage related information, such as lists. An array is initiated with the Array constructor, as in myArray = new Array();.

  • Array elements have an index number, indicating their position in the array. Array index numbers start with 0 and increment by 1 with each new element.

  • Functions can be used as methods of ActionScript objects. You assign a method by creating a unique method name after the object and setting the method's value equal to a function name (for example, mcMenu.createMenu = createMenu;). Parentheses and arguments are omitted from the method assignment.

  • You create objects with the function constructor. Functions intended for this use describe properties and methods for objects using the this target path. You create a new object by specifying an object name and setting its value equal to a new instance of the function name, as in myObject = new SoundLibrary(1,7);.




Macromedia Flash 8 Bible
Macromedia Flash8 Bible
ISBN: 0471746762
EAN: 2147483647
Year: 2006
Pages: 395

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net