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 <[email protected]> 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 <[email protected]> > To: Flash Coders List <[email protected]> > 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 > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

