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. Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team _______________________________________________ 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