Commander Class

Class com.blitzagency.xray.Commander

Inheritance > Commander

Commander is a script interpreter that allows you to execute actionscript commands at runtime. It's responsible for nearly all other functionality in controling objects from the interface as well as allowing the user to execute commands from the command panel.
Method Summary
 static Object 
 exec(str:String)
exec receives a string of ";" separated commands, splits them up and passes them on to the script method to be parsed and executed
 private static Object 
 getArguments(str:String)
getArguments locates the arguments of method calls or values of property assignments.
 private static String 
 replace(str:String, search:String, use:String)
replaces items in strings
 private static String 
restores the value back with the original "."'s
 private static String 
 retainValue(str:String)
replaces any "."'s with "(dot)" before exec does it's split at "."'s. It has too look for parens and equality operators to figure out where the retainable values are.
 private static Object 
 script(cmds:Array)
recieves an array of commands that it has to send off to getArguments to resolve the true method/value or propertychange/value. Once it has a returned object, it executes the command or propertychange
Method Detail
exec
public static function exec(str:String):Object
Parameters:
str:String
semi-colon separated list of commands to execute
Returns:
Object
getArguments
private static function getArguments(str:String):Object
Parameters:
str:String
command IE: _level0.mc._x = 30.5;
Returns:
Object
replace
private static function replace(str:String, search:String, use:String):String
Parameters:
str:String
string to be searched
search:String
what is being replaced
use:String
what to use in it's place
Returns:
String
restoreValue
private static function restoreValue(str):String
Parameters:
str:String
command to be restored
Returns:
String
retainValue
private static function retainValue(str:String):String
Parameters:
str:String
command to execute IE: _level0.mc._x = 30.5
Returns:
Object
script
private static function script(cmds:Array):Object
Parameters:
cmds:Array
array of commands to execute
Returns:
Object it can actually return a variety of types of objects



Documentation generated by BLDoc Community Edition from B-Line Express.