That is true, however if you just need a temporary onEnterFrame then it's 
better to just assign it to this instead of delcaring it in the class.
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Rákos Attila
> Sent: Wednesday, November 08, 2006 11:24 AM
> To: Flashcoders mailing list
> Subject: Re[3]: [Flashcoders] EventDispatcher and 
> onEnterFrame.... problems
> 
> 
> RA> Well, using "this" is not the matter of onEnterFrame but 
> that of any 
> RA> runtime function definition. If you declare your 
> onEnterFrame as a 
> RA> simple method, "this" can be omitted.
> 
> Oh, I mean if the class extends MovieClip of course (but in 
> other case your code doesn't work, too :))
> 
> class MyClass extends MovieClip
> {
>         var foo:Boolean;
> 
>         function MyClass() 
>         {
>         }
> 
>         function onEnterFrame()
>         {
>                  foo = !foo;
>                  traceFoo();
>         }
>         
>         function traceFoo()
>         {
>                 trace(foo);
>         }
> }
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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