Hello Lingo-Ls,
Does anyone know how to create timeout even when the animation is being
played? I have an animated company logo on the movie and I want it to go
back to the splash screen if idle for 36 second (60*60). (field "timer" as
shown below shows how many seconds left to 0). Because of the moving logo,
the movie does not recognize as idle therefore its not counting timeout.
What did I do wrong?
on startMovie
set imageList=[#city,#cloud,#face,#house,#kids,#leaf,\
#mountain,#sea,#ski,#snow,#tree,#water]
--timeout
gMouse = the mouseLoc
the timeoutLength to 60*60
the timeoutMouse = TRUE
the timeoutKeyDown =TRUE
--pull-down menu
InstallMenu "myMenu"
end
on timeout
go "splash"
end
on idle
if abs((the mouseLoc - gMouse)[1])>5 or abs ((the mouseLoc - gMouse)[2])
>5 then
clearTimer
gMouse = the mouseLoc
end if
end
on clearTimer
the timeoutLapsed = 0
end
To be honest, I got this script from Lingo-L so I do not understand "on idle
if abs((the mouseLoc........ end" what is abs? Lingo help says it's "math
function: calculates the absolute value of a numerical expression". Sorry
it's Greek to me. (or geek?) Any help greatly appreciated. Thank you all in
advance. Yo. (Thank you Johannes and Steve for your reply. Johannes, is this
supposed to close the window when clicked anywhere within? If so it's not
good for me because my miaw has interaction... Steve, after attempted that
moviescript, the miaw is still running behind the movie when I close the
miaw with close box. Not success...any other thought, please let me know. I
am desperate!)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]