home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / mirrored_maze2.swf / scripts / frame_19 / DoAction.as
Text File  |  2008-09-04  |  1KB  |  47 lines

  1. wall.lineStyle(8,16777215,25);
  2. wall2.lineStyle(8,16777215,25);
  3. imdrawing = false;
  4. onMouseDown = function()
  5. {
  6.    if(this.urmouse._x > 150)
  7.    {
  8.       if(this.urmouse._x < 650)
  9.       {
  10.          if(imdrawing == false)
  11.          {
  12.             wall.moveTo(this.urmouse._x,this.urmouse._y);
  13.             if(_root.mice == "2")
  14.             {
  15.                wall2.moveTo(this.oppomouse._x - 150,this.oppomouse._y);
  16.             }
  17.             imdrawing = true;
  18.          }
  19.          if(imdrawing == true)
  20.          {
  21.             onEnterFrame = function()
  22.             {
  23.                if(this.urmouse._x > 150)
  24.                {
  25.                   if(this.urmouse._x < 650)
  26.                   {
  27.                      wall.lineTo(this.urmouse._x,this.urmouse._y);
  28.                      if(_root.mice == "2")
  29.                      {
  30.                         wall2.lineTo(this.oppomouse._x - 150,this.oppomouse._y);
  31.                      }
  32.                   }
  33.                }
  34.             };
  35.          }
  36.       }
  37.    }
  38. };
  39. onMouseUp = function()
  40. {
  41.    onEnterFrame = function()
  42.    {
  43.       imdrawing = false;
  44.    };
  45. };
  46. stop();
  47.