Mega Code Archive

 
Categories / Flash ActionScript / Statement
 

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. } */