>>You don't. Therein lies the rub with Macromedia's Delegate class. But there is a semi-ugly way you could if you want to. Not that I recommend this method (though I have used it lots in the past with no issues, but I think it's better to go with Muzak's suggestion)
myDel:Object = myClip.onRelease = Delegate.create(this, myReleaseHandler) myDel.myProperty = "hello" function myReleaseHandler():Void { trace(arguments.caller.myProperty) } Jason Merrill Bank of America GT&O L&LD Solutions Design & Development eTools & Multimedia Bank of America Flash Platform Developer Community >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Steven Sacks >>Sent: Friday, February 01, 2008 7:19 PM >>To: Flash Coders List >>Subject: Re: [Flashcoders] Delegate question... >> >>You don't. Therein lies the rub with Macromedia's Delegate class. >> >>Use Big Spaceship's Improved Delegate class >> >>http://labs.bigspaceship.com/blog/?p=9 >> >> >> >>[p e r c e p t i c o n] wrote: >>> Howdy, >>> Quick question...How can I pass vars if i'm using delegates >>for handlers.... >>> I have it set up like so... >>> >>> >>> someMC.onRelease = Delegate.create(_level0, doSomething); >>> >>> what i want to be able to do is know which instance of >>someMC actually >>> called it... >>> >>> thanks >>> >>> p >>> _______________________________________________ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> >> >>_______________________________________________ >>Flashcoders mailing list >>Flashcoders@chattyfig.figleaf.com >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders