Loadvariables (Movieclip.loadvariables 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 absolute or relative URL of the SWF or JPEG file to be loaded. A relative
url:String
path must be relative to the SWF file at level 0. Absolute URLs must include the protocol
reference, such as
http://
[optional] - Specifies an HTTP method for sending or loading variables. The
method:String
parameter must be the string
The
method appends the variables to the end of the URL and is used for small numbers
GET
of variables. The
POST
long strings of variables.
Example
The following example creates a new movie clip, then creates child inside of it and loads a
PNG image into the child. This allows the parent to retain any instance values that were
assigned prior to the call to
var mc:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
mc.onRelease = function():Void {
trace(this.image._url); // http://www.w3.org/Icons/w3c_main.png
}
var image:MovieClip = mc.createEmptyMovieClip("image",
mc.getNextHighestDepth());
image.loadMovie("http://www.w3.org/Icons/w3c_main.png");
See also
_lockroot (MovieClip._lockroot property)
,
method)

loadVariables (MovieClip.loadVariables method)

(MovieClip.loadMovie method)
,
MovieClipLoader
onClipEvent handler
unloadMovie function
loadVariables (MovieClip.loadVariables method)
public loadVariables(url:String, [method:String]) : Void
Reads data from an external file and sets the values for variables in the movie clip. The
external file can be a text file that ColdFusion generates, a CGI script, an Active Server Page
(ASP), a PHP script, or any other properly formatted text file. The file can contain any
number of variables.
or
.
file:///
or
. If no variables are to be sent, omit this parameter.
GET
POST
method sends the variables in a separate HTTP header and is used for
.
loadMovie
,
onPress (MovieClip.onPress handler)
,
,
unloadMovieNum function
,
unloadMovie (MovieClip.unloadMovie
,
on handler
loadMovieNum function
,
loadMovie
,
,
MovieClip
485

Advertisement

Table of Contents
loading

Table of Contents