class Toilet extends CustomMC { public var state; private function onLoad () { free (); } public function occupy () { this.state="occupied"; gotoAndPlay ("occupied"); } public function free () { gotoAndStop ("free"); this.state = "free"; } }