In the book of C.Moock, he recommends the redundant use of [this] Sorry, I'm a newbie too but it seems to be a good practice to specify clearly the scope you refer to. It's clearly specified in chapter 6 to be aware about the scope. "Essential ActionScript 2.0 O'Reilly Media, Inc, 2004, ISBN 0-596-00652-7" Greetings N
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of zwetan Sent: samedi 29 octobre 2005 15:03 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Re: Newbie AS3 question > >>No need to get hyper about "this". > >>The matter stays that "this" used to be essential in AS1, thus probably > why > >>people still like to implicate him in their code. But I agree that > putting > >>"this" in an AS2 Class should be used only when necessary. > > > > You do know that it (this.) is being added for you at compile time in > AS2, right? > > Who cares? All that means is that there is no semantic difference > between the two. There is a difference for AS3 ! (and this is the correct behaviour) http://livedocs.macromedia.com/labs/1/flex/langref/statements.html#this "To call a function defined in a dynamic class, you must use this to invoke the function in the proper scope" zwetan _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders