Any way of passing a param through that? I think no
On Nov 7, 2005, at 12:20 PM, JesterXL wrote:
Use Delegate. Not sure why your's is scoping wrong, but always
worked for
me.
attachMovie("SomeClip", "mc", 0);
mc.onRelease = Delegate.create(this, onMyRelease);
function onMyRelease()
{
// scoped to class, not mc
}
----- Original Message -----
From: "Eric E. Dolecki" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Monday, November 07, 2005 12:11 PM
Subject: [Flashcoders] scope in classes
Wondering what the best way to scope mc event functions to a function
in a class is...
lets say in the class init (this is for a component), you attach some
mcs.
Then you want to have onRelease functions that scope back down to a
private function to handle that. Whats the best way to do that
without nesting functions and keeping scope? Delegate.create(this,
funcName) ends up scoping to the mc in question.
ed
_______________________________________________
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
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders