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)
&
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
2 matches
Mail list logo