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);
}
}
_______________________________________________
[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