Re: [Flashcoders] How to hault execution and raise a error flag

2010-04-30 Thread Fahim Akhter
Thanks a lot josh exactly what I needed :)

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/


On Thu, Apr 29, 2010 at 8:45 PM, Josh Saxe joshs...@yahoo.com wrote:

 Hi Fahim,

 It sounds like you want, at the point in the code in which the condition is
 reached,


  throw new Error(Description of the condition that is causing me to halt
 execution ...);

 You can subclass Error to get more fine grained classes describing various
 undesirable states if that's helpful.  If this is new to you try googling
 'actionscript try catch'.
 You need to be running your code in the debug player for execution to halt,
 and to see the error.

 Best,
 Josh



 
 From: Fahim Akhter akhter.fa...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Thu, April 29, 2010 5:13:33 AM
 Subject: [Flashcoders] How to hault execution and raise a error flag

 Hi,

 I was wondering how can I put the execution of a application to a hault and
 raise a error flag ( maybe quite everything) so it does not move anywhere
 further. I have some logical errors which do not cause troubles in the
 execution, but I still want to stop execution when they occur. For
 debugging
 purposes.

 Fahim Akhter
 Game Developer | White Rabbit Studios |
 http://apps.facebook.com/feline-frenzy/
 ___
 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


[Flashcoders] How to hault execution and raise a error flag

2010-04-29 Thread Fahim Akhter
Hi,

I was wondering how can I put the execution of a application to a hault and
raise a error flag ( maybe quite everything) so it does not move anywhere
further. I have some logical errors which do not cause troubles in the
execution, but I still want to stop execution when they occur. For debugging
purposes.

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to hault execution and raise a error flag

2010-04-29 Thread Nathan Mynarcik
You could try in your logic to use a case switch. Then break on error. 

--Original Message--
From: Fahim Akhter
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] How to hault execution and raise a error flag
Sent: Apr 29, 2010 7:13 AM

Hi,

I was wondering how can I put the execution of a application to a hault and
raise a error flag ( maybe quite everything) so it does not move anywhere
further. I have some logical errors which do not cause troubles in the
execution, but I still want to stop execution when they occur. For debugging
purposes.

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/
___
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] How to hault execution and raise a error flag

2010-04-29 Thread Fahim Akhter
breaking an error would just hault the loop. Or that perticular place and it
would come to the parent and go on with the rest of the program.

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/


On Thu, Apr 29, 2010 at 5:24 PM, Nathan Mynarcik nat...@mynarcik.comwrote:

 You could try in your logic to use a case switch. Then break on error.

 --Original Message--
 From: Fahim Akhter
 Sender: flashcoders-boun...@chattyfig.figleaf.com
 To: Flash Coders List
 ReplyTo: Flash Coders List
 Subject: [Flashcoders] How to hault execution and raise a error flag
 Sent: Apr 29, 2010 7:13 AM

 Hi,

 I was wondering how can I put the execution of a application to a hault and
 raise a error flag ( maybe quite everything) so it does not move anywhere
 further. I have some logical errors which do not cause troubles in the
 execution, but I still want to stop execution when they occur. For
 debugging
 purposes.

 Fahim Akhter
 Game Developer | White Rabbit Studios |
 http://apps.facebook.com/feline-frenzy/
 ___
 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] How to hault execution and raise a error flag

2010-04-29 Thread Josh Saxe
Hi Fahim,

It sounds like you want, at the point in the code in which the condition is 
reached,


  throw new Error(Description of the condition that is causing me to halt 
execution ...);

You can subclass Error to get more fine grained classes describing various 
undesirable states if that's helpful.  If this is new to you try googling 
'actionscript try catch'.
You need to be running your code in the debug player for execution to halt, and 
to see the error.

Best,
Josh




From: Fahim Akhter akhter.fa...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thu, April 29, 2010 5:13:33 AM
Subject: [Flashcoders] How to hault execution and raise a error flag

Hi,

I was wondering how can I put the execution of a application to a hault and
raise a error flag ( maybe quite everything) so it does not move anywhere
further. I have some logical errors which do not cause troubles in the
execution, but I still want to stop execution when they occur. For debugging
purposes.

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/
___
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