Got rid of font problem by cutting and pasting all frames into a new movie.
I am hoping this will also result in a bug free game. Thanks again to everyone for their help in my time of need. I have my fingers and toes crossed that the game will not crash anymore. Cheers Paul -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven Sent: 06 September 2009 20:36 To: 'Flash Coders List'; 'Alan Watts' Subject: RE: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash Still plugging away at this and have just tried opening the file in Flash CS4. Couple of strange things. It brought up a font mapping dialog box saying a font "HelveticaCE" is contained in my movie and not on my system. I do not recall this font being added and if I do a "Generate Size Report", it is not detailed here. I have mapped it to Helvetica but this seems strange that I cannot find it - anyone suggest a way to find it? I tried using Movie Explorer too. Also another weird thing after I closed this dialog box, I got an error saying a script in your movie is causing the movie to.... This was before I had even tried to publish or test the movie. Strange thing too is that if I close Flash CS4 and reopen I do not get this error again. So perhaps it was just a one off - very strange! Anyway I have published the game using CS4 with same publish settings and haven't got the crash again yet but that doesn't mean it won't re-appear. Is it worth rewriting the code in AS3? There isn't really much code in this game - it is simply a plane controlled by mouse that flies over a terrain. Main code as follows just in case anyone spots anything that is likely to cause a problem. This code is called onEnterFrame function faceMouse(obj:MovieClip) { var r2d = 180 / Math.PI; var dx:Number = _xmouse - obj._x; var dy:Number = _ymouse - obj._y; var rads = Math.atan2(dy, dx); obj._rotation = rads * r2d; _level0.planeShadowMC._rotation = obj._rotation; } function moveToMouse( obj:MovieClip, distance:Number) { var dx:Number = _xmouse - obj._x; var dy:Number = _ymouse - obj._y; var rads:Number = Math.atan2( dy, dx); var numNewMapX = gameMap.mapAll._x - Math.cos( rads) * distance; var numNewMapY = gameMap.mapAll._y - Math.sin( rads) * distance; if (dx > 0) { if (numNewMapX >= objGame.numMinX) { gameMap.mapAll._x = numNewMapX; } } else { if (numNewMapX <= objGame.numMaxX) { gameMap.mapAll._x = numNewMapX; } } if (dy > 0) { if (numNewMapY >= objGame.numMinY) { gameMap.mapAll._y = numNewMapY; } } else { if (numNewMapY <= objGame.numMaxY) { gameMap.mapAll._y = numNewMapY; } } radar.radarMap._x = (gameMap.mapAll._x/10) + 70; radar.radarMap._y = (gameMap.mapAll._y/10) + 46; } -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Steven Sent: 06 September 2009 16:17 To: 'Alan Watts'; flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash Out of interest, Alan, what information will the fdb give me if I can replicate the crash? Thanks Paul From: Alan Watts [mailto:a...@datax.com] Sent: 05 September 2009 18:47 To: flashcoders@chattyfig.figleaf.com Cc: Paul Steven Subject: RE: Rather urgent advice on how to track the cause of a crash fdb? http://livedocs.adobe.com/flex/3/html/help.html?content=debugging_03.html It's a good way to trackdown elusive bugs. Hopefully you can recreate the error though, because you'd be the only one who can do the inspection. Alan On Sep 5, 2009, at 11:00 AM, flashcoders-requ...@chattyfig.figleaf.com wrote: I have created a game in Flash CS3 which is being published for Flash 8 AS2. My client is reporting it crashing periodically on his XP PC. I have also managed replicate this on my Vista Ultimate PC with the following error: "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available" _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders