home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invenzioni E Inventori 1: Lavoro E Vita Quotidiana
/
invenzioni-inventori-1.iso
/
mac
/
Invenzio
/
ALBGENEA
/
Alberi.cst
/
00013_Script_13
< prev
next >
Wrap
Text File
|
1997-10-07
|
2KB
|
85 lines
on mouseup
global parola
set parola to ""
set ca to the mousecast
if the type of member ca = #shape then
set parola to the name of cast ca
cercap parola
end if
end
on cercap parolal
global correlati
put "** ",parolal
if parolal <> "" then
if char 1 to 2 of parolal = "ms" then
set correlati to parolal
chiamapopsot
exit
end if
if char 1 of parolal = "#" then
global inventore
delete char 1 of parolal
set inventore to parolal
chiamapopinv
exit
end if
if char 1 to 2 of parolal = "mp" then
if the machinetype >= 256 then
go to movie char 1 of the moviepath&":\invenzio\tori\"&parolal&".dir"
else
go to movie "invenzioni:invenzio:tori:"&parolal&".dir"
end if
exit
end if
set dove to offset (",",parolal)
if dove > 0 then
set mov to (char 1 to dove-1 of parolal)&".dir"
set l to char dove+1 to length(parolal) of parolal
if l="ex" then set cartella to "extraurb"
if l="ct" then set cartella to "citta"
if l="ci" then set cartella to "cielo"
if l="ma" then set cartella to "mare"
if l="sp" then set cartella to "spazio"
-- if l="si" then set cartella to "sottoinv"
-- if l="mp" then set cartella to "tori"
if the machinetype >= 256 then
go to movie char 1 of the moviepath&":\invenzio\"&cartella&"\" &mov
else
go to movie "invenzioni:invenzio:"&cartella&":"&mov
end if
end if
end if
end
on pulisci cosa
if offset(numtochar (013), cosa) > 0 then put "" into char offset(numtochar (013), cosa) of cosa
set r to chartonum (char (the number of chars in cosa) of cosa)
if (r < 97 or r > 122) then
if (r < 65 or r > 90) then
if (r < 48 or r > 57) then
if (r < 126) then
delete char (the number of chars in cosa) of cosa
end if
end if
end if
end if
set r to char 1 of cosa
set r to chartonum (char (the number of chars in cosa) of cosa)
if (r < 97 or r > 122) then
if (r < 65 or r > 90) then
if (r < 48 or r > 57) then
if (r < 126) then
delete char 1 of cosa
end if
end if
end if
end if
return cosa
end if