03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

window:String [optional] - A parameter specifying the name, frame, or expression that<br />

specifies the window or HTML frame that the document is loaded into. You can also use one<br />

of the following reserved target names: _self specifies the current frame in the current<br />

window, _blank specifies a new window, _parent specifies the parent of the current frame,<br />

<strong>and</strong> _top specifies the top-level frame in the current window.<br />

method:String [optional] - A String (either "GET" or "POST") that specifies a method for<br />

sending variables associated with the SWF file to load. If no variables are present, omit this<br />

parameter; otherwise, specify whether to load variables using a GET or POST method. GET<br />

appends the variables to the end of the URL <strong>and</strong> is used for a small number of variables. POST<br />

sends the variables in a separate HTTP header <strong>and</strong> is used for long strings of variables.<br />

Example<br />

The following ActionScript creates a new movie clip instance <strong>and</strong> opens the Macromedia<br />

website in a new browser window:<br />

this.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());<br />

loader_mc.getURL("http://www.macromedia.com", "_blank");<br />

The getURL() method also allows you to send variables to a remove server-side script, as seen<br />

in the following code:<br />

this.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());<br />

loader_mc.username = "some user input";<br />

loader_mc.password = "r<strong>and</strong>om string";<br />

loader_mc.getURL("http://www.flash-mx.com/mm/viewscope.cfm", "_blank",<br />

"GET");<br />

See also<br />

getURL function, sendAndLoad (LoadVars.sendAndLoad method), send<br />

(LoadVars.send method)<br />

globalToLocal (MovieClip.globalToLocal method)<br />

public globalToLocal(pt:Object) : Void<br />

Converts the pt object from Stage (global) coordinates to the movie clip's (local) coordinates.<br />

The MovieClip.globalToLocal() method allows you to convert any given x <strong>and</strong> y<br />

coordinates from values that are relative to the top-left corner of the Stage to values that are<br />

relative to the top-left corner of a specific movie clip.<br />

432 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!