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

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