AS3 Global Object 1.2
May 11th, 2007Hey everyone,
AS3 Global Object has been updated with several new features, the most important of them is an ability to watch a property. Global fires an event every time a property is created or updated.
The AS3 Global Object page has also been updated with a new example to reflect the latest changes, you can find it here.
I am looking forward to see if you find this class useful, please share your experiences!


June 8th, 2007 at 1:39 am
Thanks for this! I just started working with AS3 and I was really missing “_root” and “_global”. Working with large complex applications it really helps to have variables that you can access from anywhere. Before I found this I was passing refrences to stage to all my classes but it was just a mess. Problem solved!
July 16th, 2008 at 1:22 am
Thanks! I am looking for a way to watch/listen to the loaderInfo.parameters object for updates to its variables (which will be frequently updated by the c++ wrapper that contains the flash app) I tried defining a global var like so: global.testVar = loaderInfo.parameters.testVar, and adding an onPropChanged listener to the global object, but, not surprisingly, updates to the loaderInfo.paramaters.testVar made by the c++ wrapper do not fire global’s onPropChanged listener (though it is properly fired by manually updating global.testVar). I’m wondering if you can think of any way to assign a similar onPropChanged event to the loaderInfo.parameters object (as I can’t grab this type of continual parameters update from the canned events for loaderInfo, and using Timer to constantly poll the loaderInfo.parameters obj is not reliable enough). I’m not sure how one would do that given it’s a system level object. Due to issues in the c++ wrapper, the only way (to date) to receive those updates is via the loaderInfo.paramaters obj (as opposed to some custom object, like the global object) to which I could more easily assign a listener. Any thoughts? (appreciate any response to this thread, acknowledging it’s over a year old…)