[Flashcoders] Quick Delegate AS2 question

2008-08-21 Thread Ali Drongo
Hi there, I'm using the Delegate class and can't figure out how to call methods of another class. I think there is an easy answer to this, any suggestions whole- heartedly appreciated. Thanks, Ali Here is the syntax I'm using: import Thermometer class Animator{ var

Re: [Flashcoders] Quick Delegate AS2 question

2008-08-21 Thread Ian Thomas
On Thu, Aug 21, 2008 at 3:01 PM, Ali Drongo [EMAIL PROTECTED] wrote: Hi there, I'm using the Delegate class and can't figure out how to call methods of another class. Delegate.create(thermo, allowInteraction) should become Delegate.create(thermo, thermo.allowInteraction) And this line:

Re: [Flashcoders] Quick Delegate AS2 question

2008-08-21 Thread Ian Thomas
On Thu, Aug 21, 2008 at 3:26 PM, Ali Drongo [EMAIL PROTECTED] wrote: I presumed as I had given the scope the method would be called in that object. Yeah - it's because the compiler doesn't know what's inside a Delegate or how to use it. It's just looking at the word 'allowInteraction' and