Use the inequality operator, !=
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var userName:String = "Bruce"; if (userName != "Bruce") { trace ("This application knows only Bruce's birthday."); } } } }