Globaltolocal (Movieclip.globaltolocal Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Parameters
- The URL from which to obtain the document.
url:String
[optional] - A parameter specifying the name, frame, or expression that
window:String
specifies the window or HTML frame that the document is loaded into. You can also use one
of the following reserved target names:
window,
specifies a new window,
_blank
and
specifies the top-level frame in the current window.
_top
[optional] - A String (either
method:String
sending variables associated with the SWF file to load. If no variables are present, omit this
parameter; otherwise, specify whether to load variables using a
appends the variables to the end of the URL and is used for a small number of variables.
sends the variables in a separate HTTP header and is used for long strings of variables.
Example
The following ActionScript creates a new movie clip instance and opens the Macromedia
website in a new browser window:
this.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());
loader_mc.getURL("http://www.macromedia.com", "_blank");
The
method also allows you to send variables to a remove server-side script, as seen
getURL()
in the following code:
this.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());
loader_mc.username = "some user input";
loader_mc.password = "random string";
loader_mc.getURL("http://www.flash-mx.com/mm/viewscope.cfm", "_blank",
"GET");
See also
,
getURL function
sendAndLoad (LoadVars.sendAndLoad method)
(LoadVars.send method)

globalToLocal (MovieClip.globalToLocal method)

public globalToLocal(pt:Object) : Void
Converts the
object from Stage (global) coordinates to the movie clip's (local) coordinates.
pt
The
MovieClip.globalToLocal()
coordinates from values that are relative to the top-left corner of the Stage to values that are
relative to the top-left corner of a specific movie clip.
474
ActionScript classes
specifies the current frame in the current
_self
specifies the parent of the current frame,
_parent
or
"GET"
"POST")
method allows you to convert any given x and y
that specifies a method for
or
method.
GET
POST
,
send
GET
POST

Advertisement

Table of Contents
loading

Table of Contents