Re: [flexcoders] question about inheritance and events and overriding methods

2010-01-19 Thread Tim Romano
Thanks very much, Aaron, for taking the time to compile the code on your end. Without your help, I'd have been spinning my wheels on this for days It appears to be a compiler/debugger bug in beta 2. I started commenting out code and recompiling and then uncommenting and recompiling and event

Re: [flexcoders] question about inheritance and events and overriding methods

2010-01-18 Thread Aaron Hardy
I just tried it on my machine and it compiled without any problems after I took out the dependencies I didn't have access to. I never got the error you mentioned. Maybe it's referring to something else? Cut everything out of your project (maybe make a new one) except the onResult function you be

Re: [flexcoders] question about inheritance and events and overriding methods

2010-01-18 Thread Tim Romano
I am having trouble with an override, getting "Method marked override must override another method". No problem at all doing this: in the BASE CLASS: protected function foo(): void{} in the SUBCLASS override protected function foo(): void{} But the error given above occurs here: in the BASE

Re: [flexcoders] question about inheritance and events and overriding methods

2010-01-17 Thread Aaron Hardy
I'm not sure I understand your question clearly but if I assume correctly I think the answer will be yes, there is no need for each descendant to instantiate its own responder. Aaron On Sun, Jan 17, 2010 at 6:37 PM, Tim Romano wrote: > > > Thank you, Aaron, for the helpful answers. My intention

Re: [flexcoders] question about inheritance and events and overriding methods

2010-01-17 Thread Tim Romano
Thank you, Aaron, for the helpful answers. My intention would be to have each of the descendants of MYHTTPSERVICEBASE point to a different destination and raise an event specific to that destination, and to have a separate listeners for each kind of event. If I've understood you correctly, ther

Re: [flexcoders] question about inheritance and events and overriding methods

2010-01-17 Thread Aaron Hardy
I'll take a crack at it. Can the event object be dispatched from within the MYHTTPSERVICEBASE? Sure. I think there may be a separate underlying question here though. Are you asking how? Maybe you can clarify? Will the GUI hear it if it's dispatched from the base class? First of all, if the ser

[flexcoders] question about inheritance and events and overriding methods

2010-01-17 Thread Tim Romano
Let's say I have a class MYHTTPSERVICEBASE which extends mx.rpc.http.HTTPService. This base class of mine checks whether it is being run in debug mode or release, and sets the base URL to localhost or the remote host. Then I have individual http service classes that extend MYHTTPSERVICEBASE.