SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot miner2049er's Avatar
    Join Date
    Apr 2004
    Somewhere Out There
    0 Post(s)
    0 Thread(s)

    Question Code built for Flash player 8/9 hangs but OK with 6/7

    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

    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:

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    40 Post(s)
    1 Thread(s)
    You can't target player 6 /7 (or 8) when using actionscript 3?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts