home *** CD-ROM | disk | FTP | other *** search
/ Encyklopedia Omnia / Planeta.iso / data / e_gen.dir / 00052_VR12Handlers.ls < prev    next >
Encoding:
Text File  |  2000-10-16  |  1.0 KB  |  34 lines

  1. on handleMouseUpVR12
  2.   global gMouseDownLocVR, gMessageID, gFrameToGo, gCatenaccio
  3.   set offs to point(2, 2)
  4.   set p to point(mouseH(), mouseV())
  5.   if inside(gMouseDownLocVR, rect(p - offs, p + offs)) then
  6.     set id to the hotSpotID of sprite(1)
  7.     case id of
  8.       107:
  9.         if getPos(gCatenaccio, #cielo) = 0 then
  10.           set the MouseUpHandler of sprite(1) to EMPTY
  11.           moveToBack(window "m_navig")
  12.           set the visible of window "m_navig" to 0
  13.           add(gCatenaccio, #cielo)
  14.           set gFrameToGo to "cielo"
  15.           go(marker(2))
  16.         end if
  17.       202:
  18.         if getPos(gCatenaccio, #mare) = 0 then
  19.           set the MouseUpHandler of sprite(1) to EMPTY
  20.           moveToBack(window "m_navig")
  21.           set the visible of window "m_navig" to 0
  22.           add(gCatenaccio, #mare)
  23.           set gFrameToGo to "mare"
  24.           go(marker(2))
  25.         end if
  26.       31:
  27.         set the MovieMouseClick of sprite(1) to 0
  28.         apriMessaggio("m_evo09")
  29.       otherwise:
  30.         nothing()
  31.     end case
  32.   end if
  33. end
  34.