the reason why it's better to use Delegate instead of using a reference like :

       var thisObj = this;
       // Set a reference to "this"
       mc.onRelease = function(){
           thisObj.onRelease();
       }

is because that way is actually a hack, using the activation object:

http://timotheegroleau.com/Flash/articles/scope_chain.htm

and I believe I read somewhere that it won't actually work in flash
player 9 (or maybe just Actionscript 3 it wont work...though i did
find some mention of it in the flex docs:

http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001541.html







On 6/16/06, John Giotta <[EMAIL PROTECTED]> wrote:
I practically live by Delegate & EventDispatcher
_______________________________________________
[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

_______________________________________________
[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