The delegate class is a godsend for so many things...


// inside a class:

mc.onEnterFrame = mx.utils.Delegate.create(this, main);

function main()
{
// the mc is calling my method, and I can access all my properties as if I was calling it myself
}




Stephen Ford wrote:

Hello All,

Can anyone confirm that the Delegate class is only helpful when using 
components ?

Or should it also be used for events outside the component framework ?

No doubt it depends on what your trying to achieve, but just generally 
speaking, what do you think.

Thanks,
Stephen.
_______________________________________________
[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