you can use a singleton design pattern and create a singleton class
that holds your data and it will be accessible from each corner of
your application.
singleton class example:
//////// MySingleton.as begin ////////
package
{
public class MySingleton
{
private static var _instance:MySingleton=null;
public var myUniversallyAccesibleData:String;
public static function getInstance() :MySingleton
{
if ( _instance == null ) {
_instance = new MySingleton(new SingletonEnforcer());
}
return _instance;
}
public function MySingleton(singletonEnforcer:SingletonEnforcer) {}
}
}
class SingletonEnforcer{ }
//////// MySingleton.as end ////////
usage example:
MySingleton.getInstance().myUniversallyAccesibleData="new string";