[Extendflash] Error handling in JSFL?
Dennis O'Brien
DOBrien at LeapFrog.com
Tue Jan 10 14:12:38 PST 2006
Flash 8 IDE uses the Mozilla Spidermonkey engine, which includes Core
Javascript 1.5. There are a lot of references out there, and the
Livedocs only cover the JSFL specific features. Here are a couple links
that might help.
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Exception
_Handling_Statements:try...catch_Statement
--Dennis
________________________________
From: extendflash-bounces at flashguru.co.uk
[mailto:extendflash-bounces at flashguru.co.uk] On Behalf Of Ibis Fernandez
Sent: Tuesday, January 10, 2006 12:17 PM
To: extendflash at flashguru.co.uk
Subject: RE: [Extendflash] Error handling in JSFL?
You can do error handling using the "try..catch..finally".
you vasically "try" a function. if it works, then great! If it doesnt
then you "catch" the error and "finally" based on whatever condition you
have placed you can run a different function.
I use this to test between JSFL operations that work in flash 7 but not
in flash 8 and vice versa. Depending on whether an error comes up or not
then the appropriate function will be called for that specific version
of Flash. :)
- Ibis
________________________________
From: Liam MacDonald [mailto:liammac2005 at gmail.com]
Sent: Tuesday, January 10, 2006 2:06 PM
To: extendflash at flashguru.co.uk
Subject: Re: [Extendflash] Error handling in JSFL?
I'm not so sure, I haven't come across anything before and I can't think
of anything that would help.
If noone else replies with a proper answer, I suggest just checking all
your code and try and perfect it - maybe clean it up a bit and see if
theres anything you can add to stop the errors happening if you haven't
already.
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date:
1/9/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date:
1/9/2006
More information about the Extendflash
mailing list