LoadVars
701
For another example, see the guestbook.fla file in the ActionScript samples folder. Here are
some 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)
,
loaded (LoadVars.loaded property)
,
onLoad
(LoadVars.onLoad handler)
,
useCodepage (System.useCodepage property)
loaded (LoadVars.loaded property)
public loaded : Boolean
A Boolean value that indicates whether a
load
or
sendAndLoad
operation has completed,
undefined
by default. When a
LoadVars.load()
or
LoadVars.sendAndLoad()
operation is
started, the
loaded
property is set to
false
; when the operation completes, the
loaded
property is set to
true
. If the operation has not completed or has failed with an error, the
loaded
property remains set to
false
.
This property is similar to the
XML.loaded
property.
Availability:
ActionScript 1.0; Flash Player 6
Example
The following example loads a text file and displays information in the Output panel 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://www.helpexamples.com/flash/params.txt");
See also
load (LoadVars.load method)
,
sendAndLoad (LoadVars.sendAndLoad method)
,
load
(XML.load method)
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...