Put this script in a moviescript:
-- generic field typer
-- pass a text string, a field name, and the number 1 if
-- you want it to expand www into "world wide web", (0 if not)
-- example usage: GhostTyper "http://www", "GhostType.fld", 1
on GhostTyper tText, tFldNam, tWWWCheck
set tDisplayText = ""
repeat with x = 1 to the number of chars in tText
put char x of tText after tDisplayText
put tDisplayText into field tFldNam
updatestage
MicroPaus
end repeat
-- two quick pauses:
MicroPaus
MicroPaus
-- check for www special option
if tWWWCheck = 1 then
if tDisplayText contains "www" then
translateWWW tDisplayText, tFldNam
end if
end if
end
on translateWWW tDisplayText, tFldNam
set tCharStartPos = offset("www", tDisplayText)
set tPrefix = chars(tDisplayText, 1, tCharStartPos-1)
repeat with x = 1 to 5
set tTransFormTx = tPrefix
put chars( "world", 1, x) & " " after tTransFormTx
put chars( "wide", 1, x) & " " after tTransFormTx
put chars( "web", 1, x) after tTransFormTx
put tTransFormTx into field tFldNam
updatestage
MicroPaus
end repeat
end
on MicroPaus
set tTicks = the ticks
set tTickDelay = 8 -- adjustable, higher number = longer wait
repeat while the ticks < tTicks + tTickDelay
nothing
end repeat
end
-- Joe Sparks, oct 22 1997, and I just got a root canal.