Hi Jeff

So, when I get to the onRelease event handler, is there a way to
reference the scope of the MC that the event hander is attached to?
Or, because I used Delegate has the mc scope been lost and I need to
somehow keep track of that by, perhaps setting a focus variable or
something...

If you are to use an extended version of the Delegate class (like http://dynamicflash.com/2005/02/delegate-class-refined/), then you can send the reference to the button-clip as an extra argument:

  myNewMc.onRelease = Delegate( this, onMenuRelease, myNewMc );

And receive it like:

  function onMenuRelease( pressedMc:MovieClip ):Void

That would be a clean solution :)

--
Morten Barklund
_______________________________________________
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

Reply via email to