Mega Code Archive

 
Categories / Flash ActionScript / Statement
 

The finally Block

try { } catch (e:ErrorType1) { } catch (e:ErrorTypen) { } finally { } package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){         try {           try {             throw new Error("Test error");           } catch (e:Error) {             trace(e.message);  // Displays: Test error           }         } catch (e:Error) {         }     }   } }