Hi Jason, That's an interesting one - haven't tried that (but then, our Delegate function coped with it).
Unfortunately you won't be able to do that as you describe, because in AS3 there's no arguments.caller - only arguments.callee. I doubted that I had to do it my way, too - was quite disappointed when I discovered that AS3 didn't have a better mechanism because I thought, like with the context issue, it was something lots of people had tripped over in AS2. I may have missed something new, of course! Cheers, Ian On 4/9/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:
However, in AS 2 to tack on variables, I did/do it differently: var myDel:Object = myButton.onRelease = Delegate.create(this, doFunction) myDel.fruit = "pineapple"; function doFunction():Void { trace(arugments.caller.fruit) } I assumed in AS3 you could do something similar, though I don't know, I haven't tried yet: var myObj:Object = myButton.onRelease = doFunction myObj.fruit = "pineapple"; function doFunction():Void { trace(arugments.caller.fruit) } Or no? I kinda doubt you have to do it the way you posted on your blog, but I don't know for sure. If you do, that really sucks.
_______________________________________________ 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