public var isDialog : Bool; ... public function isLabelDialog() : Bool { if (this.isDialog == true) return true; else return false; }