Packagegs.util
Classpublic final class JSFLProxy

The JSFLProxy class is a proxy class that eleviates the pain of running jsfl from actionscript.

JSFL Proxy does not eleviate having to call such things like: MMExecute("fl.getDocumentDOM().path"), but it does relieve calling script files, or functions withing script files, and handling parameters, and responses from the script. See the runScript method for more documentation.



Public Methods
 MethodDefined by
  
alert(message:String, escap:Boolean = false):void
[static] Alert a message.
JSFLProxy
  
runScript(scriptFile:String, callProps:Object = null):*
[static] Run a jsfl script file, with optional parameters.
JSFLProxy
  
trase(msg:*, escap:Boolean = false):void
[static] Trace to output.
JSFLProxy
Method detail
alert()method
public static function alert(message:String, escap:Boolean = false):void

Alert a message.

Parameters
message:String — A message to alert.
 
escap:Boolean (default = false) — Whether or not to escape the alert message.
runScript()method 
public static function runScript(scriptFile:String, callProps:Object = null):*

Run a jsfl script file, with optional parameters.

The callProps object accepts these properties:

Those properties are optional. And depending on what properties are present, either a jsfl file will execute, or a method inside of it

Parameters
scriptFile:String — The fileURI (file:///) to run.
 
callProps:Object (default = null) — The call properties to use for this call.

Returns
*

Example
Calling a script file (no method):
 
    var j:JSFLProxy=JSFLProxy.gi();
    j.runScript("myscript.jsfl",{responseFormat:"xml",responseWasEscape:true});
    

Calling a method in a script file:
 
    var j:JSFLProxy=JSFLProxy.gi();
    j.runScript("myscript.jsfl",{method:"helloWorld",params:["test"],escapeParams:true,responseFormat:"XML",responseWasEscape:true});
    

trase()method 
public static function trase(msg:*, escap:Boolean = false):void

Trace to output.

Parameters
msg:* — An object to trace out.
 
escap:Boolean (default = false) — Whether or not to escape the trace.