You need to use Delegate to keep your scope within the class:
import mx.utils.Delegate
class MyClass
{
//stuff
private function setActions():Void
{
myButton.onRelease = Delegate.create(this,
myOnRelaseHandler)
}
private function myOnReleaseHandler():Void
{
super()
}
}
Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team
_______________________________________________
[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