home *** CD-ROM | disk | FTP | other *** search
/ PC Open 10 / pcopen10.iso / aaron / dida / sequenz.dxr / 00069.ls < prev    next >
Encoding:
Text File  |  1997-09-24  |  1.3 KB  |  43 lines

  1. on exitFrame
  2.   go(the frame)
  3. end
  4.  
  5. on enterFrame
  6.   global larghezza, altezza, msprite, grandezza
  7.   set larghezza to the mouseH
  8.   set altezza to the mouseV
  9.   if grandezza = 0 then
  10.     set the loc of sprite 48 to point(771, 0)
  11.   end if
  12.   if (larghezza > 109) and (larghezza < 475) and (altezza > 77) and (altezza < 404) then
  13.     updateStage()
  14.     pulsante()
  15.     puppetSprite(48, 1)
  16.     set the moveableSprite of sprite 48 to 1
  17.     if the mouseDown or the stillDown then
  18.       set the loc of sprite 48 to point(larghezza, altezza)
  19.       if msprite <> 0 then
  20.         if sprite 48 intersects msprite then
  21.           set the memberNum of sprite 48 to the memberNum of sprite msprite
  22.           set the rect of sprite 48 to the rect of sprite msprite
  23.           set the visible of sprite 48 to 1
  24.           set the visible of sprite msprite to 0
  25.         end if
  26.       end if
  27.     end if
  28.   else
  29.     set the loc of sprite 48 to point(771, 0)
  30.     puppetSprite(48, 0)
  31.     set the visible of sprite 48 to 0
  32.     set the visible of sprite msprite to 1
  33.     updateStage()
  34.     set msprite to 0
  35.   end if
  36.   if the mouseUp then
  37.     set the memberNum of sprite 48 to 17
  38.     set the rect of sprite 48 to rect(larghezza, altezza, larghezza + 1, altezza + 1)
  39.     set the visible of sprite msprite to 1
  40.     updateStage()
  41.   end if
  42. end
  43.