home *** CD-ROM | disk | FTP | other *** search
- function loadGame(num)
- {
- this.whichgame = num;
- thegame.unloadMovie();
- thegame.removeMovieClip();
- this.attachMovie("game_" + gamnams[num],"thegame",0);
- }
- function win(tim, lif)
- {
- stopAllSounds();
- trace("API GAME WON! Game id: " + whichgame);
- dia.unloadMovie();
- dia.removeMovieClip();
- d = _root.attachMovie("wrap_winscreen","dia",99);
- d.tim = tim;
- d.lif = lif;
- }
- function lose()
- {
- stopAllSounds();
- trace("API GAME LOST! Game id: " + whichgame);
- dia.unloadMovie();
- dia.removeMovieClip();
- _root.attachMovie("wrap_failscreen","dia",99);
- }
- stop();
- stopAllSounds();
- var gamnams = new Array("mario","dd","zelda");
-