Using FlashDevelop 3.3.4 RTM, and an AS2 Project I'm currently converting Jeremy Moseley's excellent and compact Battletanks from AS2 to AS3.
After a few seconds, the game will hang (script goes into an infinite loop somewhere.)
Happens when I build for Flash player 8 or 9 (Properties > Platform Target).
But plays OK when built for Flash player 6 or 7.
Doesn't matter if Debug or Release.
Running in Flash player 10.3.183.10
Using Windows XP SP3, with all latest updates, at least a couple of days ago.
Have noticed it seems to hang when two tanks are shooting at each other, so that is the region of code I'm going to explore, starting with the lineOfSight() function.
I'm not too knowledgeable about Flash player bugs/language changes between versions, so while I'm digging around the source, if anybody has any tips, they would be most appreciated.
Code below, and Dropbox link to ZIP of FD project files here:
If you are converting to AS3 then I believe you will want to be aiming for a player numbered 9 or higher, since versions 1 thru 8 do not support AS3.
If you have not completely converted the file it will most likely hang on any coding error in the file.