[Flashcoders] problem with Delegate and scope

2006-03-16 Thread Manuel Saint-Victor
I have not been having much luck with using Delegate lately. If I understand it correctly then it will call a function in the scope of the class file that it is defined -right? Well In one of my classes within this function I have the delegate being used and I'm not sure if it's because of a

Re: [Flashcoders] problem with Delegate and scope

2006-03-16 Thread Alain Rousseau
Hi Manuel, The thing about Delegate is that you can't just call it like that. It is supposed to be used either with eventHandling onSomething = or with setInterval, setTimeOut. Here is a link that will make you see the light http://www.osflash.org/flashcoders/as2?s=delegate So for exemple you

Re: [Flashcoders] problem with Delegate and scope

2006-03-16 Thread Manuel Saint-Victor
Okay that cleared up a lot for me and saved me countless hours-!! Thank you! Mani On 3/16/06, Alain Rousseau [EMAIL PROTECTED] wrote: Hi Manuel, The thing about Delegate is that you can't just call it like that. It is supposed to be used either with eventHandling onSomething = or with