:) That's no problem.  I actually feel much of the event managment code 
provided by Macr is fairly lacking.  The Arp framework helps somewhat to fix 
this and the ArpX extention by Grant Davies goes one better with some nice 
system events and what not, but you'd think after all this time supporting AS2, 
Macr should have got their act together and provided this level of API 
themselves.

Anyway, you'll probably find a couple of other issues with the MX classes when 
compiling with MTASC, though I forget which ones I've altered in the past.  I'm 
sure you'll have no problems working out the necessary modifications though.  
Actually, I'm pretty sure there's a patch for the MX AS2 classes on 
osflash.org.  Maybe you should look their and apply it to your existing classes?

Regards and happy coding,
Lee





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning
Sent: 13 June 2006 13:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] mtasc and delegate

Thanks Lee.. I can't believe i had to alter Delegate O_o

- Andreas

Lee McColl-Sylvester wrote:
> I've found this before... Macr, not being good at general programming syntax 
> rules, have used the same variable name inside and outside an internal 
> function definition.  It kinda looks like this:
> 
> Function somefunc()
> {
>       Newfunc = function()
>       {
>               Var func;
>               ...
>       }
> 
>       Var func;
>       ...
> }
> 
> Although Flash would compile this as okay because the variables have 
> different scopes, MTASC see them as both belonging to somefunc, so see the 
> variable func as being declared twice.
> 
> If you navigate the file, you should be able to rename one of the vars
> 
> Lee
> 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning
> Sent: 13 June 2006 13:19
> To: Flashcoders mailing list
> Subject: [Flashcoders] mtasc and delegate 
> 
> Delegate.as line 27: characters 3-11 : type error Local variable 
> redefinition : func
> 
> Why is mtasc giving me hate? It's not like i wrote Delegate :P
> 
> - Andreas SJ
> _______________________________________________
> 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
> _______________________________________________
> 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

-- 

- Andreas Rønning

---------------------------------------
Flash guy
Rayon Visual Concepts, Oslo, Norway
---------------------------------------
_______________________________________________
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
_______________________________________________
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