I have tracked the issue further into the MacroMedia code.
The error occurs on this line in
com.macromedia.javascript.JavaScriptProxy.as:
var f:Function = call;
Can this syntax be compiled using mtasc?
The error says "type error Unknown variable call", but there is a public
"call" function.
I really wish I knew if I am doing something wrong, or if mtasc just
doesn't handle the syntax used in JavaScriptProxy.as.
Any help is appreciated. Sorry to bother you folks.
Shannon
I hope I'm not bothering you folks.
Shannon Scott wrote:
> Hello,
> Has anyone tried to compile the 'JavaScript and Flash Integration Kit'
> with mtasc? Following the instructions here:
>
http://weblogs.macromedia.com/flashjavascript/readme.html>
> I created a small class like this:
> import com.macromedia.javascript.JavaScriptProxy;
> class test {
> static function main(mc) {
> var proxy:JavaScriptProxy = new JavaScriptProxy();
> proxy.call("onOverlayLoaded");
> }
> }
>
> I can not get the test.as to compile. I get this error:
> type error Unknown variable call
>
> When I look at the source JavaScriptProxy.as, there is a public
> function called 'call'.
> Sorry if this question is elementary, I am new to mtasc and actionscript.
> Thank you for any help.
> Shannon
>
>
>
>
--
MTASC : no more coffee break while compiling