| Package | vegas.net |
| Class | public class FlashVars |
| Inheritance | FlashVars Parameters Object |
parameters object of the root of your application.
Example :
package
{
import vegas.net.FlashVars ;
import flash.display.Sprite ;
// Main class of your application.
public class Main extends Sprite
{
// constructor
public function Main()
{
flashVars = new FlashVars( this ) ; // register the FlashVars of the application
trace( flashVars.contains( "test" ) ) ; // true if the flash vars exist
trace( flashVars.getValue("test") ) ; // The value of the FlashVars or null if not exist.
}
// The static reference of all FlashVars in the application.
public static var flashVars:FlashVars ;
}
}
| Method | Defined By | ||
|---|---|---|---|
FlashVars(root:DisplayObjectContainer = null)
Creates a new FlashVars instance. | FlashVars | ||
![]() | contains(name:String):Boolean
Indicates if the parameters object contains the specified variable. | Parameters | |
![]() | getValue(name:String, ... rest):*
Returns the value of the specified variable in the parameters reference. | Parameters | |
| FlashVars | () | Constructor |
public function FlashVars(root:DisplayObjectContainer = null)Creates a new FlashVars instance.
Parametersroot:DisplayObjectContainer (default = null) — The root of the application to resolve the FlashVars generic object (in the loaderInfo.parameters in AS3 main class).
|