• flickr
  • linkedin
  • twitter
  • rss
try / catch

try / catch

Try and catch is most handy for handling files with AIR etc. Pretty straightforward, but just incase you forget the syntax:

try {
// statements
} catch (error:ArgumentError) {
trace('An argument error has occured');
} catch (error:Error) {
trace('An error has occured which is not argument related');
}

src: (ty)
http://www.foundation-flash.com/tutorials/tryandcatch/

Tech Reference:

Larry's a 30-something chap interested in travel, being a dork and changing the world via less boring training.

Leave a reply