Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread grimmwerks
Thanks -- yeah it seems like the something's happening on the stomp / callback before it's getting to me. Have another quickie about itemrenderers and factory properties, but going to ask on another thread. On Sep 22, 2011, at 2:11 PM, Alex Harui wrote: > > > IMHO anonymous functions are w

Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread Alex Harui
IMHO anonymous functions are way more trouble than they are worth. If I had the time, I would eliminate them from all framework code. Looks from the stacktrace that someone is using apply() to change the this pointer. On 9/22/11 10:46 AM, "grimmwerks" wrote: Not getting an error, just

Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread grimmwerks
Not getting an error, just getting ignored and the function is never called. var scope:Object = this; private var echoOrderCacheEvent:Function = function(jstr:String):void{ Alert.show(this); trace(scope);

Re: [flexcoders] help with anonymous functions...

2011-09-22 Thread Alex Harui
I don’t know why passing in echoEvent wouldn’t work. What error did you get? Another options are to pass in a third parameter as the object for use in call or apply. You can theoretically do this as well in the constructor of the class: Public function MyClassConstructor() { var thisObject:

[flexcoders] help with anonymous functions...

2011-09-22 Thread grimmwerks
OK I don't mean to make this a bit convoluted - but I guess the basics of the question is regarding using anonymous functions within a member class and being able to set variables within that member class. The convoluted question is this: I've got in my app an Interface class that has pointers