Packagecom.threerings.util
Classpublic class ParameterUtil

A utility for loading parameters from an XML file when run from the local filesystem. The file "parameters.xml" should reside in the current directory and contains:



Public Methods
 MethodDefined by
  
getInfoParameters(loaderInfo:LoaderInfo, callback:Function):void
[static] Get the parameters.
ParameterUtil
  
getParameters(disp:DisplayObject, callback:Function):void
[static] Get the parameters.
ParameterUtil
Protected Methods
 MethodDefined by
  
logWarning(msg:String):void
[static] Convenience function to log a warning, since we don't keep around a Log instance.
ParameterUtil
Method detail
getInfoParameters()method
public static function getInfoParameters(loaderInfo:LoaderInfo, callback:Function):void

Get the parameters. Note: the callback function may be called prior to this method returning.

Parameters
loaderInfo:LoaderInfo
 
callback:Function
getParameters()method 
public static function getParameters(disp:DisplayObject, callback:Function):void

Get the parameters. Note: the callback function may be called prior to this method returning.

Parameters
disp:DisplayObject
 
callback:Function
logWarning()method 
protected static function logWarning(msg:String):void

Convenience function to log a warning, since we don't keep around a Log instance.

Parameters
msg:String