I’m trying to figure out how to use namespaces with the “in” operator. My problem is that I’m using dynamic objects and can’t get a reference to the target namespace without an error being thrown.
this is essentially what I’m trying to do…
var obj:IEventDispatcher = IEventDispatcher(e.target);
var info:Object = Object(edinfo[obj]);
var f:String = info.callbackPrefix + func;
var d:* = info.callbackDelegate;
var ns:Namespace = d.event_handler; //event_handler is the namespace in "d". This causes problems because d is not typed??
trace(f in ns);
That code doesn’t tell you much about context of what I’m doing. But that’s what I need to do with this namespace situation…
yeah that’s somewhat helpful. My biggest concern was having to use a try catch. Because of what I’m doing, there could potentially be a lot of exceptions raised. and try catch’s are slow. But that describe type might lead me down the right path… let me know if you think of anything else.