I'm removing the button interface from a Flash AS2 drawing tool. All the actions performed by the SWF buttons are now called from the HTML via JS and ExternalInterface.
The drawing tool can add text creating a TextField
, and draw or add an image creating an empty MovieClip
When the JS code calls the method to create the TextField
, FireBug shows an error about:
missing ] after element list
dFonts:true,maxChars:null,maxhscroll:0,h...oll:1,hitTest:[type Function],filters:[]
When calling the method to add a new empty MovieClip
it throws the following error:
_level0 is not defined
Internet Explorer shows the same-but-less-informative errors
None of the errors breaks the code execution, and the AS2 compiler does not complain about the AS2 code. Why are these errors showing?
[By the way, the very first time the error came up the source of the error was shown as a remote JS file, but I can't remember the reference, as if FireFox was loading it as a class to manage the JS-SWF communication]