Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Global Functions | |||
This section describes the syntax and use of the Adobe's Macromedia Flash Lite 1.1 ActionScript global functions. It includes the following functions:
|
Function |
Description |
|---|---|
call()
|
Executes the script in the called frame without moving the playhead to that frame. |
chr()
|
Converts ASCII code numbers to characters. |
duplicateMovieClip()
|
Creates an instance of a movie clip while the SWF file plays. |
eval ()
|
Accesses variables, properties, objects, or movie clips by name. |
getProperty()
|
Returns the value of the specified property for the specified movie clip. |
getTimer()
|
Returns the number of milliseconds that elapsed since the SWF file started playing. |
getURL()
|
Loads a document from a specific URL into a window or passes variables to another application at a defined URL. |
gotoAndPlay()
|
Sends the playhead to the specified frame in a scene and begins playing from that frame. If no scene is specified, the playhead moves to the specified frame in the current scene. |
gotoAndStop()
|
Sends the playhead to the specified frame in a scene and stops it. If no scene is specified, the playhead is sent to the frame in the current scene. |
ifFrameLoaded()
|
Checks whether the contents of a specific frame are available locally. |
int()
|
Truncates a decimal number to an integer value. |
length()
|
Returns the number of characters of the specified string or variable name. |
loadMovie()
|
Loads a SWF file into Flash Lite while the original SWF file plays. |
loadMovieNum()
|
Loads a SWF file into a level in Flash Lite while the originally loaded SWF file plays. |
loadVariables()
|
Reads data from an external file, such as a text file or text generated by a ColdFusion, CGI ASP, PHP, or Perl script, and sets the values for variables in a Flash Lite level. This function can also update variables in the active SWF file with new values. |
loadVariablesNum()
|
Reads data from an external file, such as a text file or text generated by a ColdFusion, CGI, ASP, PHP, or Perl script, and sets the values for variables in a Flash Lite level. This function can also update variables in the active SWF file with new values. |
mbchr()
|
Converts an ASCII code number to a multibyte character. |
mblength()
|
Returns the length of the multibyte character string. |
mbord()
|
Converts the specified character to a multibyte number. |
mbsubstring()
|
Extracts a new multibyte character string from a multibyte character string. |
nextFrame()
|
Sends the playhead to the next frame and stops it. |
nextScene()
|
Sends the playhead to Frame 1 of the next scene and stops it. |
Number()
|
Converts an expression to a number and returns a value. |
on()
|
Specifies the user event or keypress that triggers an event. |
ord()
|
Converts characters to ASCII code numbers. |
play()
|
Moves the playhead forward in the timeline. |
prevFrame()
|
Sends the playhead to the previous frame and stops it. If the current frame is Frame 1, the playhead does not move. |
prevScene()
|
Sends the playhead to Frame 1 of the previous scene and stops it. |
removeMovieClip()
|
Deletes the specified movie clip that was originally created using |
set()
|
Assigns a value to a variable. |
setProperty()
|
Changes a property value of a movie clip as the movie plays. |
stop()
|
Stops the SWF file that is currently playing. |
stopAllSounds()
|
Stops all sounds currently playing in a SWF file without stopping the playhead. |
String()
|
Returns a string representation of the specified parameter. |
substring()
|
Extracts part of a string. |
tellTarget()
|
Applies the instructions specified in the |
toggleHighQuality()
|
Turns anti-aliasing on and off in Flash Lite. Anti-aliasing smooths the edges of objects but slows down SWF file playback. |
trace()
|
Evaluates the expression and shows the result in the Output panel in test mode. |
unloadMovie()
|
Removes a movie clip from Flash Lite that was loaded using |
unloadMovieNum()
|
Removes a movie clip that was loaded using |
|
|
|
|