Random Error Messages
I've been working on my second game for several weeks now and am just starting to round the corner and the finish line is in sight.
Unfortunately, this is when everything seems to be falling apart.
Now when I run my program, sometimes it works fine, sometimes it gives me errors. It's not that I'm changing anything, I've tested it a few times in a row and sometimes I get 1 error, sometimes I get 5, sometimes it runs great.
The errors include:
"
| /Documents/Flash_Projects/PotN/bgImage.as, Line 11 | 1021: Duplicate function definition. |
//On an empty class that is only defined and added to the stage in main.as
and
| /Documents/Flash_Projects/PotN/spark.as, Line 1 | 5000: The class 'spark' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type. |
//On various game elements that have been working fine up until now, and continue to work fine sometimes.
One thing that is interesting is that in my library, the properties for my MovieClips contain an empty base class. When I try to edit it to say "flash.display.MovieClip," flash tells me it is a native class and will be defined at runtime. That seems irregular to me, but I am obviously still very, very new to all of this.
So that's my problem. I haven't posted any code yet because I wouldn't even know where to start. Any ideas or thoughts are very much appreciated, thank you!
