home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2011 May / ME_2011_05.iso / Galileo-Video-Tutorial / media / info.swf / scripts / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2011-05-17  |  1.4 KB  |  61 lines

  1. function setdirector()
  2. {
  3.    this.anwendung = "director";
  4. }
  5. function setButtons()
  6. {
  7.    var _loc3_ = 0;
  8.    while(_loc3_ < list.length)
  9.    {
  10.       var _loc2_ = list[_loc3_];
  11.       _loc2_.active = false;
  12.       _loc2_.frame = _loc3_ + 3;
  13.       _loc2_.button.onRollOver = function()
  14.       {
  15.          if(!this._parent.active)
  16.          {
  17.             this._parent.gotoAndStop("in");
  18.          }
  19.       };
  20.       _loc2_.button.onRollOut = function()
  21.       {
  22.          if(!this._parent.active)
  23.          {
  24.             this._parent.gotoAndStop("out");
  25.          }
  26.       };
  27.       _loc2_.button.onReleaseOutside = function()
  28.       {
  29.          if(!this._parent.active)
  30.          {
  31.             this._parent.gotoAndStop("out");
  32.          }
  33.       };
  34.       _loc2_.button.onRelease = function()
  35.       {
  36.          if(!this._parent.active)
  37.          {
  38.             reset();
  39.             this._parent.active = true;
  40.             this._parent.gotoAndStop("in");
  41.             gotoAndStop(this._parent.frame);
  42.          }
  43.       };
  44.       _loc3_ = _loc3_ + 1;
  45.    }
  46.    this.b01.button.onRelease();
  47. }
  48. function reset()
  49. {
  50.    var _loc1_ = 0;
  51.    while(_loc1_ < list.length)
  52.    {
  53.       var _loc2_ = list[_loc1_];
  54.       _loc2_.active = false;
  55.       _loc2_.gotoAndStop("out");
  56.       _loc1_ = _loc1_ + 1;
  57.    }
  58. }
  59. this.anwendung = "flash";
  60. var list = new Array(this.b01,this.b02,this.b03);
  61.