User Guide

Table Of Contents
16 Flash Lite Global Functions
Example
The following example sets the timeElapsed variable to the number of milliseconds that
elapsed since the SWF file started playing:
timeElapsed = getTimer();
trace (timeElapsed);// Output: milliseconds of time movie has been playing
getURL()
Availability
Flash Lite 1.0.
Usage
getURL(url [ , window [, "variables"]])
Operands
url The URL from which to obtain the document.
window An optional parameter that specifies the window or HTML frame that the
document should load into.
You can enter an empty string, or the name of a specific window, or choose from the following
reserved target names:
_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.
variables A GET or POST method for sending variables. If there are no variables, omit this
parameter. The
GET method appends the variables to the end of the URL and is used for small
numbers of variables. The
POST method sends the variables in a separate HTTP header and is
used for sending long strings of variables.
Description
Function; loads a document from a specific URL into a window or passes variables to another
application at a defined URL. To test this function, make sure the file you want to load is in
the specified location. To use an absolute URL (for example, http://www.myserver.com), you
need a network connection.
NOTE
The window parameter is not specified for Flash Lite applications, because browsers on
cell phones do not support multiple windows.