home *** CD-ROM | disk | FTP | other *** search
/ Invenzioni E Inventori 1: Lavoro E Vita Quotidiana / invenzioni-inventori-1.iso / mac / Invenzio / Extraurb / sharede.cst / 03002_Script_3002 next >
Text File  |  1997-10-08  |  3KB  |  89 lines

  1. on blocca
  2.   global dove,anim_loco,vidstat,gia_fatto,vidstat,foto_vid
  3.   if the mouseh <= 68 and the mousev>= 320 and the mousev <= 373 then
  4.     nothing
  5.   else
  6.     set anim_loco to false
  7.   end if
  8.   set pinc to the mousecast
  9.   set mv to the mousev
  10.   set mh to the mouseh
  11.   set n_castlib to "sharede"
  12.   ------------------------BLOCCA E SPEGNE I VIDEO QUANDO SI CAMBIA SCHERMATA
  13.   if pinc > 0 then
  14.     set scrpt to the scripttext of member (pinc)
  15.     set gia_fatto to false
  16.     if offset(" go ",scrpt) and the name of member pinc <> "1h_cur" then
  17.       if the membernum of sprite 48 > 0 then
  18.         if the casttype of member (the membernum of sprite 48) = #digitalvideo then
  19.           set the movierate of sprite 48 to 0
  20.           set vidstat to "stop"
  21.           puppetsprite 48 , false
  22.           updatestage
  23.         end if
  24.       end if
  25.       
  26.     end if
  27.     ----------
  28.     if the membernum of sprite 47 > 0 then
  29.       if the casttype of member (the membernum of sprite 47) of castlib n_castlib = #digitalvideo then
  30.         if offset("spritebox",scrpt) and offset("111",scrpt) then
  31.           global qvolte_video
  32.           put "passato"
  33.           set the video of cast 3001 of castlib n_castlib to 0
  34.           set the video of cast 3001 of castlib n_castlib to 1
  35.           set the movierate of sprite 47 to 0
  36.           put "mvrt",the movierate of sprite 47 
  37.           set qvolte_video to false
  38.         end if
  39.       end if
  40.     end if
  41.     
  42.     ---------BLOCCA IL CUBETTO QUANDO SI INGRANDISCONO I VIDEO E LE FOTO
  43.     if the membernum of sprite 47 > 0 then
  44.       if the casttype of member (the membernum of sprite 47) of castlib n_castlib = #digitalvideo then
  45.         
  46.         if offset("spritebox",scrpt) and the name of member pinc <> "1h_cur" and offset("640",scrpt) then
  47.           if the movierate of sprite 47 = 1 then
  48.             set the movierate of sprite 47 to 0
  49.             if the mouseh < 260 then 
  50.               set foto_vid to true  
  51.             else
  52.               set foto_vid to false
  53.             end if
  54.           end if
  55.         else
  56.           if the movierate of sprite 47 = 0 then
  57.             if foto_vid then 
  58.               set the movierate of sprite 47 to 1
  59.               set foto_vid to false
  60.             end if
  61.           end if
  62.         end if
  63.       end if
  64.       
  65.     end if
  66.   end if 
  67.   ------------------ 
  68.   global percorso
  69.   if marker(0) = 1 then 
  70.     set rit_marker to marker("viaggio")
  71.   else
  72.     set rit_marker to marker(0)
  73.   end if
  74.   if not rit_marker  then 
  75.     set rit_marker to 1
  76.   end if
  77.   if count(percorso) > 0 then
  78.     if getlast (percorso) <>  ("#"&the moviepath&the moviename) or getPropAt(percorso, count(percorso)) <> rit_marker then
  79.       set r_movie to "#"&the moviepath&the moviename
  80.       addprop percorso, rit_marker,  r_movie
  81.     end if
  82.   else
  83.     set r_movie to "#"&the moviepath&the moviename
  84.     addprop percorso, rit_marker,  r_movie
  85.   end if
  86.   -----
  87. end if
  88.  
  89. end