You would only use super() if you're extending. It sounds like he was using
composition, but thinking of inheritance.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, May 18, 2007 11:48 AM
To: [email protected]
Subject: RE: [Flashcoders] How to set button event listeners within a class

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

_______________________________________________
[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

Reply via email to