PROGRAMMING COURSES ADMIN VIDEO TUTORIALS COMMUNITY RESOURCES |
ActionScript 3.0 sports a new feature called
the rest( ... ) operator. This allows us to
send a comma delimeted array of arguments to our custom functions for
processing. The rest operator is represented by three consecutive dots
called triple dot( ... ).
Using the rest operator to send array data into functions ![]() function myFunction(... argArray):void {
Joe
Betty Suzy William Using rest along with other arguments. (rest ... ) must come last. ![]() function myFunction(var1:String, var2:String, ... argArray):void {
Joe is first in line Betty is second in line Suzy William
|
|||||||||||
|
|
DevelopPHP Requires Flash Player
___________________________________________
|
||||||||