I work with Flash MX and run the latest Flash player. My first thoughts when my game did not work was that I had some how programmed it wrong, but when I checked for errors it said there were none. This is not the first time it's happened. I was following a tutorial on programming, and had the code line by line in all the right places. I am at the end of my patience here, please help!
Answers (2)
Flash MX doesn't detect all errors, unlike most programming languages. It does basic checks like unclosed curly braces ({ }), but not everything.
Example that would not cause an error to show up:
//Code to wait 30 frames then go to frame 3
//Code won't work due to spelling error in variable reference
var myNumber:Number = 0;
function onEnterFrame()
{
myNubmer++;
if(myNumber == 30)
gotoAndStop(3);
}
As you can see, accessing a variable that hasn't been defined (myNubmer) doesn't cause an error. There are lots of errors that Flash doesn't detect. I recommend pasting your code so it can be looked at closer, or online help for ActionScript code.
On a side note, some tutorials only work when objects are given a specific property. I messed up one because my Dynamic Text was set to multi-line instead of single line. Little things like this that aren't code specific can cause problems, but won't show errors.