Re: [Flashcoders] EventDispatcher and Delegate - where am I goingwrong...

2006-10-26 Thread Muzak
list" Sent: Thursday, October 26, 2006 5:03 PM Subject: Re: [Flashcoders] EventDispatcher and Delegate - where am I goingwrong... >> it seems you are mixing two approaches. > >> approach 1) >> this.mcButton.onRelease = Delegate.create(this, this.onClick) &

RE: [Flashcoders] EventDispatcher and Delegate - where am I goingwrong...

2006-10-26 Thread Pete Miller
Pressing your button causes the code to create the delegate function, not execute it. You want the result of Delegate() to be stored as the onRelease function. Do this: >> this.mcButton.onRelease = Delegate.create(this.objRef, onClick) P. >> -Original Message- >> From: [E