Hi, are you compiling in mtasc with the -mx flag? If so, the delegate class will not be compiled into your swf and it will not work. When I work with Mtasc (through FlashDevelop) i find it the easiest to use an injection swf, but i dont know if that is an option for you. If so, create an swf in flash, with : import mx.utils.Delegate; var cls0:Delegate; on the root and export it.
Now when you use this swf as injection swf with mtasc you will be able to use the Delegate class. HTH JC On 8/4/06, Chris Allen <[EMAIL PROTECTED]> wrote:
Another approach is to use Steve Webster's Delegate. It's polymorphic with the MM version. Here it is anyway: http://dynamicflash.com/2005/05/delegate-version-101/ You get additional functionality similar to Joey Lott's version too, if you decide you need it. Hope it helps. -Chris On 8/2/06, jcarlos <[EMAIL PROTECTED]> wrote: > thanks Pål I´will check that > > ----- Original Message ----- > From: "Pål Østerud" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, August 02, 2006 6:48 AM > Subject: Re: [Flashcoders] Mtasc & Delegate > > > 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 > > _______________________________________________ > [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 > _______________________________________________ [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

