home *** CD-ROM | disk | FTP | other *** search
- class GameOver extends MovieClip
- {
- var btnPlayAgain;
- var btnTryAgain;
- function GameOver()
- {
- super();
- }
- function init(bSuccess)
- {
- !!bSuccess ? (this.btnPlayAgain.onRelease = mx.utils.Delegate.create(this,this.onReleasePlay), this.gotoAndStop("success")) : (this.btnTryAgain.onRelease = mx.utils.Delegate.create(this,this.onReleaseTry), this.gotoAndStop("failed"));
- }
- function onReleasePlay(Void)
- {
- Application.goto("front");
- }
- function onReleaseTry(Void)
- {
- Application.goto("front");
- }
- }
-