home *** CD-ROM | disk | FTP | other *** search
/ A Virtual Reality Guide to Texas / CD.iso / texdata / trnsprtr.dir / 00519_pda forward button.ls < prev    next >
Encoding:
Text File  |  1998-06-17  |  1.5 KB  |  50 lines

  1. on mouseDown
  2.   global gPDAPict, gPDAQT, gPictNum, gPictStart, gPictEnd
  3.   puppetSound(3, "tick")
  4.   set rollState to the castNum of sprite the clickOn
  5.   set downState to rollState + 10
  6.   set the castNum of sprite the clickOn to downState
  7.   updateStage()
  8.   repeat while the stillDown
  9.     if rollOver(the clickOn) then
  10.       set the castNum of sprite the clickOn to downState
  11.       if gPDAQT then
  12.         if the type of member the castNum of sprite 48 = #digitalVideo then
  13.           set the movieRate of sprite 48 to 2
  14.         end if
  15.       end if
  16.       updateStage()
  17.       next repeat
  18.     end if
  19.     set the castNum of sprite the clickOn to rollState
  20.     if gPDAQT then
  21.       if the type of member the castNum of sprite 48 = #digitalVideo then
  22.         set the movieRate of sprite 48 to 1
  23.       end if
  24.     end if
  25.     updateStage()
  26.   end repeat
  27.   if gPDAQT then
  28.     if the type of member the castNum of sprite 48 = #digitalVideo then
  29.       set the movieRate of sprite 48 to 1
  30.     end if
  31.     updateStage()
  32.   end if
  33.   if rollOver(the clickOn) then
  34.     if gPDAPict then
  35.       if gPictNum < gPictEnd then
  36.         set gPictNum to gPictNum + 1
  37.       else
  38.         set gPictNum to gPictStart
  39.       end if
  40.       set the text of field "pict counter" to gPictNum - gPictStart + 1 & " of " & gPictEnd - gPictStart + 1
  41.       set the castNum of sprite 46 to gPictNum
  42.     end if
  43.     set the castNum of sprite the clickOn to downState
  44.     updateStage()
  45.   else
  46.     set the castNum of sprite the clickOn to rollState
  47.     updateStage()
  48.   end if
  49. end
  50.