home *** CD-ROM | disk | FTP | other *** search
- class EndingWord extends BaseObject
- {
- var mcRef;
- function EndingWord(__mcRef)
- {
- super(__mcRef);
- this.setState("Out");
- var _loc3_ = Library.Utils.MoreMath.getRandomRange(1,19);
- this.mcRef.mcState.mcWord.gotoAndStop(_loc3_);
- LevelManager.Instance.doAddListener(this);
- }
- function doDestroy()
- {
- LevelManager.Instance.doRemoveListener(this);
- super.doDestroy();
- }
- function doOut()
- {
- if(this.isStateComplete())
- {
- this.doDestroy();
- }
- }
- }
-