SSB> Inside an onEnterFrame function you have to use "this" when referring to SSB> things in the class (if the class extends MovieClip, which I hope it SSB> does because only MovieClips can have onEnterFrame as far as I know).
Well, using "this" is not the matter of onEnterFrame but that of any runtime function definition. If you declare your onEnterFrame as a simple method, "this" can be omitted. class MyClass { 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