Hi,
When compiling with mtasc, you should use the "main entry point" method,
which is a static method from which the compiler starts interpreting the
code. That may force you to rewrite your code a little, and some other
code which complied well with the builtin flash compiler (from the flash
ide) may not work with mtasc, mtasc being a little more strict than the
macromedia/adobe compiler.
I am not sure if this method is mandatory or not, but i think so. (anyone ?)
The best is to go to mtasc website or osflash.org to get more infos.
Good luck.
Jidé.
Shannon Scott a écrit :
> Hello,
> I am new to mtasc. I was using SWF::Builder ( perl module ) to create
> swf files, but I would like to use Actionscript2.
> I tried to compile some of my old code using mtasc, but it doesn't work.
> When I try to compile a file with:
>
> if (this.proj == undefined) {
> this.proj = 'projmerc';
> }
>
> I get this error:
> parse error Unexpected if
>
> But when I look up the Actionscript "if", it shows that I am using it
> correctly.
> What am I doing wrong or missing?
> Thank you for any help.
> Shannon
>
>
--
MTASC : no more coffee break while compiling