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 trying to figure out what it is. Because allowInteraction isn't a known variable/method/property of the current class, the compiler doesn't know what it is and so throws an error. thermo.allowInteraction actually says to the compiler 'the method or property called allowInteraction on the object thermo' - the compiler will check out thermo's type and look up allowInteraction there, find it and be happy. Hope that explains it. :-) Ian _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

