Flash
  Home arrow Flash arrow Page 3 - Working with external data in Flash
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

Working with external data in Flash
By: Adi Reddy Mora
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 25
    2005-05-11

    Table of Contents:
  • Working with external data in Flash
  • getURL(), loadVariables(),loadVariablesNum(), loadMovie(), and loadMovieNum() methods
  • LoadVars Class
  • MovieClipLoader class
  • XML Class
  • XMLSocket Class

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with external data in Flash - LoadVars Class


    (Page 3 of 6 )

    The LoadVars Class can be used in lieu of loadVariables() and loadVariablesNum() methods. It has three methods that use the HTTP or HTTPS protocol to send and load information in URL-encoded format.

    This class 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 or text files.

    When compared to loadVariables() and loadVariablesNum() methods, LoadVars class has many advantages.

    Example:

    The following example instantiates a LoadVars object, assigns a couple of variables to it and sends those variables to a PHP page with http POST method.

    var sample_lv:LoadVars = new LoadVars();
    
    sample _lv.name = “Jhon”;
    
    sample _lv.age = “36”;
    
    sample _lv.send("setid.php", "_blank", "POST");
    

    You can check the usage and advantages of LoadVars class at http://www.devarticles.com/c/a/Flash/The-Power-of-LoadVars-Object/, which gives you a clear picture of how to use it. 

    More Flash Articles
    More By Adi Reddy Mora


     

    FLASH ARTICLES

    - 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
    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT