I did a search through the list and on Google for this but couldn't find mention about this issue.
Has anyone ever tried using __resolve on a class that extends another class? I'm using __resolve to handle the multitude of methods that will be called on this class, which actually calls a 3rd party API. The class has some smarts for some of the methods and provides an interface to parameters via the parameters panel. The class extends UIComponent. Initially I was getting a 256 loop error and then nothing, after some tinkering. After some debugging I put a trace in the __resolve function and what I've found is that any calls to superclass members are ending up in the __resolve and thus not working. It's as though the inheritted members are not really on the subclass. That's the best I can explain it. I've simplified the class: import mx.core.UIComponent; class Browser extends UIComponent { public var dispatchEvent:Function; public var addEventListener:Function; public var removeEventListener:Function; function Browser() { } public function init() { super.init(); } public function go() { dispatchEvent({type:'gone'}); } public function __resolve() { var method = arguments.shift(); return function () { trace(method+':'+arguments); } } } Then in frame 1 I add a listener for the 'gone' event and execute myInstance.go(); This is the output: initProperties: createAccessibilityImplementation: _endInit: dispatchEvent:[object Object] addEventListener:gone,_level0 dispatchEvent:[object Object] The event handler never gets called. Does anyone know why this happens? Is it not possible to use __resolve in this way? Derek Vadneau _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com