home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / germ_roundup.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  1.4 KB  |  62 lines

  1. function Doge_PlayAgain()
  2. {
  3.    Doge_Close();
  4.    _global.mcRoot.gotoAndStop("intro");
  5. }
  6. function Doge_Load()
  7. {
  8.    createEmptyMovieClip("DOGE",1500);
  9.    DOGE._x = 84;
  10.    DOGE._y = 30;
  11. }
  12. function Doge_Open(t_score)
  13. {
  14.    _level0.playerScore = t_score;
  15.    DOGE.loadMovie(_level0.dogePath,1);
  16. }
  17. function Doge_Close()
  18. {
  19.    removeMovieClip(_level0.DOGE);
  20.    Doge_Load();
  21. }
  22. function Doge_Init(t_path, t_event, t_subject)
  23. {
  24.    _level0.dogePath = t_path;
  25.    _level0.eventID = t_event;
  26.    _level0.subject = t_subject;
  27.    _level0.playerScore = 0;
  28.    Doge_Load();
  29. }
  30. function Doge_run()
  31. {
  32.    DOGE.loadMovie(_level0.dogePath,1);
  33. }
  34. stop();
  35. this.onEnterFrame = function()
  36. {
  37.    var _loc2_ = this;
  38.    var _loc1_ = _loc2_.getBytesLoaded() / _loc2_.getBytesTotal();
  39.    _loc2_.loaderBar._xscale = 100 * _loc1_;
  40.    if(_loc1_ == 1)
  41.    {
  42.       _global.maggiePerformance = new smashing.PerformanceTest(null,function()
  43.       {
  44.          gotoAndStop("intro");
  45.       });
  46.       delete _loc2_.onEnterFrame;
  47.    }
  48. };
  49. oBase = new smashing.Base();
  50. _global.mcRoot = this;
  51. _global.bMute = false;
  52. smashing.Viewport.init(580,320);
  53. _level0.fsdPlayAgain = Doge_PlayAgain;
  54. var dogePath = "http://www.disney.go.com/disneychannel/global/game/scoredisplays/fsd.swf";
  55. var dogeEventID = "dc_bom_mgr_1923";
  56. var dogeSubject = "Buzz on Maggie - Germy Roundup";
  57. Doge_Init(dogePath,dogeEventID,dogeSubject);
  58. submitScore = function()
  59. {
  60.    Doge_Open(this.oMain.score);
  61. };
  62.