home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 46 / Mobiclic46.iso / pc / DATA / SHARED / COMMUNS.CST / 00011_Script_11 < prev    next >
Text File  |  2002-07-12  |  628b  |  38 lines

  1. --PAUSE
  2.  
  3. --parameters
  4. property pPauseTime
  5. property pPauseClic
  6.  
  7. on getPropertyDescriptionList me
  8.   list=[:]
  9.   
  10.   --pause time
  11.   addProp list, #pPauseTime,\
  12. [#comment: "Temps de pause (s)", #format: #integer, #default:1]
  13.   
  14.   --pause clicable
  15.   addProp list, #pPauseClic,\
  16. [#comment: "Pause clicable", #format: #boolean, #default:0] 
  17.   
  18.   return list  
  19. end
  20.  
  21. on beginSprite me
  22.   startTimer
  23. end
  24.  
  25. on exitFrame me
  26.   if the timer < pPauseTime * 60 then
  27.     go to the frame
  28.   end if
  29. end
  30.  
  31. on mouseUp
  32.   if pPauseClic = 1 then
  33.     if testClic()=1 then
  34.       go to the frame + 1
  35.     end if
  36.   end if
  37. end
  38.