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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

public dynamic class LoadVars<br />

extends Object<br />

You can use the LoadVars class to obtain verification of successful data loading <strong>and</strong> to monitor<br />

download progress. The LoadVars class is an alternative to the loadVariables() function for<br />

transferring variables between a Flash application <strong>and</strong> a server.<br />

The LoadVars class lets you send all the variables in an object to a specified URL <strong>and</strong> load all<br />

the variables at a specified URL into an object. It also lets you send specific variables, rather<br />

than all the variables, which can make your application more efficient. You can use the<br />

LoadVars.onLoad h<strong>and</strong>ler to ensure that your application runs when data is loaded, <strong>and</strong> not<br />

before.<br />

The LoadVars class works much like the XML class; it uses the methods load(), send(), <strong>and</strong><br />

sendAndLoad() to communicate with a server. The main difference between the LoadVars<br />

class <strong>and</strong> the XML class is that LoadVars transfers ActionScript name <strong>and</strong> value pairs, rather<br />

than an XML DOM tree stored in the XML object. The LoadVars class follows the same<br />

security restrictions as the XML class.<br />

See also<br />

loadVariables function, onLoad (LoadVars.onLoad h<strong>and</strong>ler), hasXMLSocket<br />

(capabilities.hasXMLSocket property)<br />

Property summary<br />

Modifiers Property Description<br />

Properties inherited from class Object<br />

362 ActionScript classes<br />

contentType:String The MIME type that is sent to the server when you<br />

call LoadVars.send() or<br />

LoadVars.sendAndLoad().<br />

loaded:Boolean A Boolean value that indicates whether a load or<br />

sendAndLoad operation has completed,<br />

undefined by default.<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)

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

Saved successfully!

Ooh no, something went wrong!