Slight typo in my last example, try this:

import mx.utils.Delegate

var oRel:Object = myButton_mc.onRelease = Delegate.create(this,
myButtonMethod)
var oRol:Object = myButton_mc.onRollOver = Delegate.create(this,
myButtonMethod)
oRel.name = "onRelease"
oRol.name = "onRollOver"

function myButtonMethod():Void
{
        trace(arguments.caller.name)
}

Basically you are assigning the delegate to an object, and then tacking
on a custom property to the object.

Curious though, why you need to do this?

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

Reply via email to