• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Functions

Functions

Term Syntax and Description Example(s)
eval eval(expression); Accesses variables, properties, objects, or movie clips by name. this._x = eval(this._droptarget)._x;
getProperty getProperty(instancename, property);

instancename: the instance name of a movie clip

property: a property of a movie clip

Returns the value of the specified instance name's property.
getProperty (_level0.shark., _width);
getTimer getTimer(); Returns the number of milliseconds that have elapsed since the movie started playing. time = getTimer(); Returns a numeric value.
getVersion getVersion(); Returns a string containing Flash Player version and platform information. trace (getVersion());

Outputs:

WIN 5,0,17,0

Indicates that the platform is Windows and that the version number of Flash Player is major version 5.
unescape unescape(x); Evaluates the x argument as a string, decodes the string from URL-encoded format, and returns the string. unescape ("Hello%7B%5BWorld%5D%7D");

Unescaped result:

Hello{[World]}



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint