How do I get a reference to a component instance from within a class?
/**
* Dispatches a creation complete event for html elements
*/
public static function onHTMLCreationComplete(id:String):void
{
trace("in Manager")
if (Application.application.hasOwnProperty(id)) {
trace(" has property " + id)
Application[id].dispatchEvent(new
Event("htmlCreationComplete"));
}
}I'm trying to have my manager class dispatch an event on a component instance. Maybe this is the wrong approach??
