home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Puzzle
/
Easter_Eggs.swf
/
scripts
/
__Packages
/
com
/
novelgames
/
flashgames
/
eggsAS2
/
GameOverDialog.as
< prev
next >
Wrap
Text File
|
2008-09-04
|
1KB
|
31 lines
class com.novelgames.flashgames.eggsAS2.GameOverDialog extends com.novelgames.flashgames.commonAS2.NewMovieClip
{
function GameOverDialog()
{
super();
this.gotoAndStop("hide");
}
function show()
{
this.gotoAndStop("show");
}
function showPlayAgain()
{
var _loc2_ = undefined;
_loc2_ = this.createMovie("MessagePlayAgain");
this.messagePlayAgain = _loc2_;
this.messagePlayAgain.playAgainButton.addEventListener(com.novelgames.flashgames.commonAS2.MouseEvent.CLICK,this,"playAgainButtonClicked");
this.messagePlayAgain.homeButton.addEventListener(com.novelgames.flashgames.commonAS2.MouseEvent.CLICK,this,"homeButtonClicked");
this.addChild(this.messagePlayAgain);
this.gotoAndStop("show");
}
function playAgainButtonClicked(mouseEvent)
{
Object(this.__get__parent().parent).gotoGamePage();
}
function homeButtonClicked(mouseEvent)
{
Object(this.__get__parent().parent).gotoTitlePage();
}
}