Hi João, Mtasc is more strict with variable scope than MM's compiler. If you want to use mtasc on MM's Delegate method you can rename the variable called "func" inside the dynamically created function in the Delegate.create method (that is two places exactly, and don't touch the line "arguments.callee.func"). I can't quote MM's sourcecode here due to copyright. Hope that helps.
Yours sincerely, Pål Østerud > ------------------------------ > > From: "jcarlos" <[EMAIL PROTECTED]> > hi All, > I´m having problems using Delegate with MTASC > this works fine Flash compiler > if (_actionRelease) > { > container_mc.onRelease = Delegate.create (this, handleRelease); > } > but doesn´t work with MTASC > Any help? Directions ? > Thanks in advance > João Carlos _______________________________________________ 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