RE: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-08 Thread Paul Steven
Yeah I assume it must have been something corrupt in the flash file as it
did not seem to crash after I cut and pasted all the frames into a new
movie. If only I had thought to do that first. Ah well I will certainly do
that next time something like this crops up.

Cheers

Paul

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of mike
donnelly
Sent: 08 September 2009 16:03
To: Flash Coders List
Subject: Re: [Flashcoders] RE: Rather urgent advice on how to track the
cause of a crash

Ah that's great. What was it in the end? You just copied the frames into a
new CS4 fla (and removed the weird font)?

2009/9/7 Paul Steven 

> Just a quick update to say the client has just reported a full days use of
> the game with no crashes! Phew - that was a close one!
>
> Thanks again for all the advice - I wouldn't have cracked it without all
> the
> fantastic tips.
>
> Cheers
>
> Paul
>
> ___
> 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


Re: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-08 Thread mike donnelly
Ah that's great. What was it in the end? You just copied the frames into a
new CS4 fla (and removed the weird font)?

2009/9/7 Paul Steven 

> Just a quick update to say the client has just reported a full days use of
> the game with no crashes! Phew - that was a close one!
>
> Thanks again for all the advice - I wouldn't have cracked it without all
> the
> fantastic tips.
>
> Cheers
>
> Paul
>
> ___
> 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


RE: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-07 Thread Paul Steven
Just a quick update to say the client has just reported a full days use of
the game with no crashes! Phew - that was a close one!

Thanks again for all the advice - I wouldn't have cracked it without all the
fantastic tips.

Cheers

Paul

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-06 Thread Ian Thomas
Sounds like a good idea. Sometimes movies just corrupt - copying and
pasting is a good answer. (Save and Compact can sometimes sort out
those sort of bugs too...)

Ian

On Sun, Sep 6, 2009 at 9:29 PM, Paul Steven wrote:
> 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
&g

Re: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-06 Thread mike donnelly
:) pleasure. what a pissy sunday you must be having. yer a troopa.

2009/9/6 Paul Steven 

> 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 Se

RE: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-06 Thread Paul Steven
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 prog

RE: [Flashcoders] RE: Rather urgent advice on how to track the cause of a crash

2009-09-06 Thread Paul Steven
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] RE: Rather urgent advice on how to track the cause of a crash

2009-09-06 Thread Paul Steven
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] RE: Rather urgent advice on how to track the cause of a crash

2009-09-05 Thread Alan Watts

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