home *** CD-ROM | disk | FTP | other *** search
/ The Great Adventure of Natural Gas / start / start.swf / scripts / DefineSprite_387 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-01-01  |  1.1 KB  |  56 lines

  1. function showMenu()
  2. {
  3.    _visible = true;
  4. }
  5. function hideMenu()
  6. {
  7.    _visible = false;
  8. }
  9. btnquiz.onRelease = function()
  10. {
  11.    var _loc1_ = _root;
  12.    _loc1_.setQuitter();
  13.    _loc1_.mcscene.efface();
  14.    _loc1_.mcscene.resetObjs();
  15.    hideMenu();
  16.    _loc1_.createEmptyMovieClip("quizzz",10);
  17.    _loc1_.quizzz.loadMovie("swf/quiz.swf");
  18. };
  19. btnfermer.onRelease = function()
  20. {
  21.    _parent.gotoAndPlay("petit");
  22. };
  23. btnfermer.onRollOver = function()
  24. {
  25.    _level0.showToolTip("r├⌐duire");
  26. };
  27. btnfermer.onRollOut = btnfermer.onDragOut = function()
  28. {
  29.    _level0.hideToolTip("");
  30. };
  31. _parent.petit.onRelease = function()
  32. {
  33.    _root.mcscene.efface();
  34.    _root.mcscene.resetObjs();
  35.    _parent.gotoAndPlay("grand");
  36. };
  37. btnchaine.onRelease = function()
  38. {
  39.    hideMenu();
  40.    _root.gotoAndStop("DD");
  41. };
  42. btnres.onRollOver = function()
  43. {
  44.    _level0.showToolTip("Pour aller plus loin...");
  45.    btnres.gotoAndStop(2);
  46. };
  47. btnres.onDragOut = btnres.onRollOut = function()
  48. {
  49.    _level0.hideToolTip("");
  50.    btnres.gotoAndStop(1);
  51. };
  52. btnres.onRelease = function()
  53. {
  54.    _root.pageRes();
  55. };
  56.