03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

};<br />

my_lv.load("http://www.helpexamples.com/flash/params.txt");<br />

An example is also in the guestbook.fla file in the ActionScript samples folder at<br />

www.adobe.com/go/learn_fl_samples. Download <strong>and</strong> decompress the .zip file <strong>and</strong> navigate to<br />

the folder for your version of ActionScript to access the sample.<br />

See also<br />

load (XML.load method), loaded (LoadVars.loaded property), onLoad<br />

(LoadVars.onLoad h<strong>and</strong>ler)<br />

loaded (LoadVars.loaded property)<br />

public loaded : Boolean<br />

A Boolean value that indicates whether a load or sendAndLoad operation has completed,<br />

undefined by default. When a LoadVars.load() or LoadVars.sendAndLoad() operation is<br />

started, the loaded property is set to false; when the operation completes, the loaded<br />

property is set to true. If the operation has not completed or has failed with an error, the<br />

loaded property remains set to false.<br />

This property is similar to the XML.loadedproperty.<br />

Example<br />

The following example loads a text file <strong>and</strong> displays information in the Output panel when<br />

the operation completes.<br />

var my_lv:LoadVars = new LoadVars();<br />

my_lv.onLoad = function(success:Boolean) {<br />

trace("LoadVars loaded successfully: "+this.loaded);<br />

};<br />

my_lv.load("http://www.helpexamples.com/flash/params.txt");<br />

See also<br />

load (LoadVars.load method), sendAndLoad (LoadVars.sendAndLoad method), load<br />

(XML.load method)<br />

LoadVars constructor<br />

public LoadVars()<br />

Creates a LoadVars object. You can then use the methods of that LoadVars object to send <strong>and</strong><br />

load data.<br />

370 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!