[Flashcoders] Scope Chain in AS2

2006-01-16 Thread Judah Frangipane
If anyone has the book JavaScript - The Definitive Guide please read the following pages on scope: JavaScript - The Definitive Guide 1.5 -- 4.3.0 Variable Scope 4.3.1 No Block Scope 4.6.1 The Global Object 4.6.2 Local Variables: The Call Object 4.6.3

Re: [Flashcoders] Scope Chain in AS2

2006-01-16 Thread Martin Wood
basically in AS3 you dont need to use Delegate, so you can do things like pass method references to other objects which will be called within the correct scope. I think the same applies to declaring anonymous functions (like the classic myXML.onLoad = function() {...}) e.g. class SomeClass {