EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Tostring (Loadvars.tostring Method); Localconnection

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
710 ActionScript classes
See also
send (LoadVars.send method), load (LoadVars.load method), sendAndLoad
(XML.sendAndLoad method)
toString (LoadVars.toString method)
public toString() : String
Returns a string containing all enumerable variables in my_lv, in the MIME content
encoding application/x-www-form-urlencoded.
Availability: ActionScript 1.0; Flash Player 6
Returns
String - A string.
Example
The following example instantiates a new
LoadVars() object, creates two properties, and uses
toString() to return a string containing both properties in URL encoded format:
var my_lv:LoadVars = new LoadVars();
my_lv.name = "Gary";
my_lv.age = 26;
trace (my_lv.toString()); //output: age=26&name=Gary
LocalConnection
Object
|
+-LocalConnection
public dynamic class LocalConnection
extends Object
The LocalConnection class lets you develop SWF files that can send instructions to each other
without the use of
fscommand() or JavaScript. LocalConnection objects can communicate
only among SWF files that are running on the same client computer, but they can be running
in different applications--for example, a SWF file running in a browser and a SWF file
running in a projector. You can use LocalConnection objects to send and receive data within a
single SWF file, but this is not a standard implementation; all the examples in this section
illustrate communication between different SWF files.

Table of Contents

Related product manuals