Home arrow Flash arrow The Power of LoadVars Object

The Power of LoadVars Object

The LoadVars object offers a cleaner, easier way to carry out the task of exchanging data with a server. Adi Reddy Mora explains how this object, introduced in Flash Player 6, can help you to more easily transfer variables between a Flash movie and a server.

Author Info:
By: Adi Reddy Mora
Rating: 4 stars4 stars4 stars4 stars4 stars / 41
February 09, 2005
  1. · The Power of LoadVars Object
  2. · Advantages of the LoadVars class
  3. · Receiving the variables in server-side script
  4. · Using LoadVars Object for loading data from text files
  5. · LoadVars.decode

print this article

The Power of LoadVars Object
(Page 1 of 5 )

The LoadVars object was introduced in Flash Player 6 to provide a cleaner, much more object-oriented interface for the common task of exchanging data with a server.

It is an alternative to the loadVariables action with more flexibility for transferring variables between a Flash movie and a server.*

*Here after "server" refers to any of the server-side scripting technology (ASP/ASP.NET/PHP/JSP/ColdFusion/etc)

You can use the LoadVars object to obtain verification of successful data loading, progress indications, and stream data while it downloads. The LoadVars object works much like the XML object; it uses the methods load, send, and sendAndLoad to communicate with a server. The main difference between the LoadVars object and the XML object is that LoadVars transfers ActionScript name and value pairs, rather than an XML DOM tree stored in the XML object.

It also lets you send only the variables that are required by the server instead of sending all the variables, as in the case of loadVariables or loadVariablesNum.

The LoadVars object is supported by Flash Player 6 and later.

blog comments powered by Disqus

- More Top Flash Game Tutorials
- Top Flash Game Tutorials
- Best Flash Photo Gallery Tutorials
- The Top Flash Tutorials for Menus
- 7 Great Flash Tutorials
- Adobe Creative Suite 5.5 Now Available
- Critical Flash Vulnerability Heats Up the Web
- More on Nonpersistent Client-Side Remote Sha...
- Nonpersistent Client-Side Remote Shared Obje...
- Using the Decorator Pattern for a Real Web S...
- Using Concrete Decorator Classes
- Delving More Deeply into the Decorator Patte...
- The Decorator Pattern in Action
- A Simple Decorator Pattern Example
- Decorator Pattern

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials