MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 398

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
- A string; the URL from which to download the variables. If the SWF file
url:String
issuing this call is running in a web browser,
for details, see the Description section.
Returns
-
if no parameter (null) is passed;
Boolean
false
handler to check the success of loaded data.
Example
The following code defines an
the Flash application from a server-side PHP script, and then loads the data in passvars.php.
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
trace(this.toString());
} else {
trace("Error loading/parsing LoadVars.");
}
};
my_lv.load("http://www.helpexamples.com/flash/params.txt");
An example is also in the guestbook.fla file in the ActionScript samples folder. The following
list gives typical paths to this folder:
Windows: boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript
Macintosh: Macintosh HD/Applications/Macromedia Flash 8/Samples and Tutorials/
Samples/ActionScript
See also
load (XML.load method)
(LoadVars.onLoad handler)
398
ActionScript classes
url
handler function that signals when data is returned to
onLoad
,
loaded (LoadVars.loaded property)
must be in the same domain as the SWF file;
otherwise. Use the
true
event
onLoad()
,
onLoad

Advertisement

Table of Contents
loading

Table of Contents