Packagevegas.net
Classpublic class FlashVars
InheritanceFlashVars Inheritance Parameters Inheritance Object

This manager register the reference of the 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 ;
          }
     }
     



Public Properties
 PropertyDefined By
 Inheritedparameters : Object
Defines the parameters object reference of the application.
Parameters
Public Methods
 MethodDefined By
  
FlashVars(root:DisplayObjectContainer = null)
Creates a new FlashVars instance.
FlashVars
 Inherited
contains(name:String):Boolean
Indicates if the parameters object contains the specified variable.
Parameters
 Inherited
getValue(name:String, ... rest):*
Returns the value of the specified variable in the parameters reference.
Parameters
Constructor Detail
FlashVars()Constructor
public function FlashVars(root:DisplayObjectContainer = null)

Creates a new FlashVars instance.

Parameters
root:DisplayObjectContainer (default = null) — The root of the application to resolve the FlashVars generic object (in the loaderInfo.parameters in AS3 main class).