Actually, option 1 is what you should aim for and option 2 is what you should 
avoid.
Or in other words, approach 1 was introduced to avoid/get around approach 2.

regards,
Muzak

----- Original Message ----- 
From: "Jon Bennett" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
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)
>>
>> approach 2)
>> this.mcButton.objRef = this;
>> this.mcButton.onRelease = function ()
>>              {
>>                     this.objRef.onClick();
>>             }
>
> yep, certainly was!
>
> thanks, option 2 it was, as I need to set some vars in the class
>
> many thanks!
>
> jon
>
>
> -- 
>
>
> jon bennett


_______________________________________________
[email protected]
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

Reply via email to