ToScript()

Used to convert the given input to Actionscript/Javascript variable

Usage

STRING = ToScript( object, jsname, format, shortcuts )
Argument Summary
object object - struct, array, query or simple value
jsname javascript var name
format format - flag to set WDDX output; default false [optional]
shortcuts shortcuts - flag to use shortcuts for structs/arrays; default to false [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

ToScript(
   object=?, 
   jsname=?, 
   format=?, 
   shortcuts=?
);

Supports passing parameters as a structure using ArgumentCollection:

ToScript( ArgumentCollection={
   object : ?, 
   jsname : ?, 
   format : ?, 
   shortcuts : ?
} );