package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var sUsername:String = ""; try { if(sUsername == "") { throw new Error("Missing Username."); } } catch (erObject:Error) { trace(erObject.message); // Displays: Missing Username. } } }}
Name (required)
email (will not be published) (required)
Website