MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 322

Actionscript language reference
Table of Contents

Advertisement

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.flash-mx.com/mm/params.txt");
For an in-depth example, see
article "Macromedia Flash MX and PHP" at
flashmx_php.html.
LoadVars.loaded
LoadVars.loaded
Availability
Flash Player 6.
Usage
my_lv.loaded:Boolean
Description
Property; a Boolean value that indicates whether a load or sendAndLoad operation has
completed, undefined by default. When a
operation is started, the
property is set to
loaded
property remains set to
loaded
This property is similar to the
Example
The following example loads a text file and writes information to the log file when the operation
completes.
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
trace("LoadVars loaded successfully: "+this.loaded);
};
my_lv.load("http://flash-mx.com/mm/params.txt");
322
Chapter 6: ActionScript Core Classes
"Using the LoadVars class" on page 69
www.macromedia.com/devnet/mx/flash/articles/
LoadVars.load()
property is set to
loaded
. If the operation has not completed or has failed with an error, the
true
.
false
property.
XML.loaded
and the Macromedia DevNet
or
LoadVars.sendAndLoad()
; when the operation completes, the
false

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents