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

  1. stop();
  2. bouton.onRelease = function()
  3. {
  4.    var _loc1_ = _parent;
  5.    if(_loc1_.btnRessources.cache == false)
  6.    {
  7.       _loc1_.btnRessources.bouton.onRelease();
  8.    }
  9.    if(cache == null)
  10.    {
  11.       cache = true;
  12.    }
  13.    if(_loc1_.btncache.clipRes.cache == true)
  14.    {
  15.       this._parent.softGo(1,3.5,2);
  16.    }
  17.    else
  18.    {
  19.       this._parent.softGo(555,3.5,1.8);
  20.    }
  21.    cache = !cache;
  22. };
  23. bouton.onRollOver = function()
  24. {
  25.    gotoAndStop(2);
  26. };
  27. bouton.onDragOut = bouton.onRollOut = function()
  28. {
  29.    gotoAndStop(1);
  30. };
  31. cachebtn.useHandCursor = false;
  32.