That seems to compile, but what does it actually do? It says that using this will cause all the classes from the -mx name space to be omitted from the swf. How would I get those classes into the swf?

Juan Pablo Califano wrote:
I asume you're using MTASC. There was a flag (I never used it) to workaround
this problem, I think.

Checkout the -mx option: http://www.mtasc.org/

Hope it helps.

Cheers
Juan Pablo Califano

2010/1/13 Andrew Sinning <and...@learningware.com>

I started looking into using FlashDevelop's code injection tonight.  I'm
using AS2.

I don't think trying to use this is going to be very practical, as the
compiler is rather strict in ways that the Flash IDE isn't.  In fact, it's
so strict that it won't even compile some of the MX classes!

Is there a setting that I'm not aware of that I can use to get FD to inject
my code and these quite common MX classes.  Thanks!

A few of the things that it doesn't like that I've found so far.

If you declare a variable within curly-braces, and then try to get it
outside of the braces, the variable is undefined.  (I know that this is
correct, but as this code is the MX classes, I would hope that it would
compile.)

You can't re-declare a variable within the same scope.  Again, not
something that I would do, but quite common in the MX classes.

The input type of a setter must be the same as the return type of a
same-named getter.  This is really annoying, as it's very convenient to
except multiple types for the set (e.g. the string-name of an object or the
object itself) but have the getter return a specific type of object.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to