home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Gui / Cursors.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2002-04-02  |  685 b   |  31 lines

  1. function ShowCursor(bShow, strCursorID)
  2. {
  3.    if(bShow)
  4.    {
  5.       if(this.CurrentCursor eq strCursorID)
  6.       {
  7.          Mouse.hide();
  8.          _root.CustomCursor.play();
  9.          this._visible = true;
  10.       }
  11.       else
  12.       {
  13.          if(_root.CustomCursor != undefined)
  14.          {
  15.             unloadMovie(_root.CustomCursor);
  16.          }
  17.          this._visible = false;
  18.          this.attachMovie(strCursorID,"CustomCursor",100);
  19.          Mouse.hide();
  20.          startDrag("_root.CustomCursor",1);
  21.          this._visible = true;
  22.          this.CurrentCursor = strCursorID;
  23.       }
  24.    }
  25.    else
  26.    {
  27.       Mouse.show();
  28.       this._visible = false;
  29.    }
  30. }
  31.