The finally block can be useful for cleaning up. You can use try and finally together : Finally : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » Finally »

 

The finally block can be useful for cleaning up. You can use try and finally together


 
/*
try {
  // Code to try.
}
finally {
  // Code to run regardless.
}
//Or, you can use try, catch, and finally:
try {
  // Code to try.
}
catch (erObject:Error) {
  // Code to run if the try code throws an error.
}
finally {
  // Code to run regardless.
}
*/

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Statement
» Finally