
Posted by Tom Green
Ever had this happen to you? You create a Flash MX 2004 or Flash MX 2004 Professional movie. Not being a "coder", you use the Flash Behaviors that come packaged with the application, or even some code you found in a magazine or a book. You apply the behavior, or enter the code, and when you test the movie you are told there are errors in the script. What's with that?
The odds are very good that your movie is using Actionscript 2.0 as its default. This is a strict implementation of the ECMA standard which is, as you are discovering, rather unforgiving. To put things back on an even keel, select File>Publish Settings. When the dialog box opens, click the Flash tab. The third item is named "Actionscript Version:". Click and hold on the default, which is Actionscript 2.0. When the pop down menu appears, select Actionscript 1.0. and click OK. Test your movie and the script errors should be a thing of the past.