home *** CD-ROM | disk | FTP | other *** search
/ The Great Adventure of Natural Gas / start / start.swf / scripts / DefineSprite_305 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-01-01  |  554 b   |  35 lines

  1. stop();
  2. this.onRollOver = function()
  3. {
  4.    this.gotoAndStop(2);
  5. };
  6. this.onRollOut = this.onReleaseOutside = function()
  7. {
  8.    this.gotoAndStop(1);
  9. };
  10. if(muteSound)
  11. {
  12.    mcSon.gotoAndStop(2);
  13. }
  14. else
  15. {
  16.    mcSon.gotoAndStop(1);
  17. }
  18. this.onRelease = function()
  19. {
  20.    var _loc1_ = _global;
  21.    if(muteSound)
  22.    {
  23.       mcSon.gotoAndStop(1);
  24.       _loc1_.sonActif = true;
  25.       muteSound = false;
  26.    }
  27.    else
  28.    {
  29.       mcSon.gotoAndStop(2);
  30.       _loc1_.sonActif = false;
  31.       muteSound = true;
  32.    }
  33.    trace(_loc1_.sonActif);
  34. };
  35.