on exitframe on
mousewithin on
mouseleave
on mouseup on
mouseenter on
mousedown
A custom handler is useful
when you want to write a series of commands and checks to be executed several
times during the course of a movie.
In the example below the Òon
checkhitsÓ event is placed in a global movie scriptÑit can be placed just below
the on startmovie handler.
Used in movie Òbreakout_sample.dirÓ
in Files for Courses>Tiffany Holmes>Interactive_Multimedia>Class 6 on
the ATS File Server X.
on checkhits
global ghitlist
--this global records the
channels of the sprites hit
if count(ghitlist) = 10 then
--reset other globals and move to next marker
gx=1
gy=1
hitlist=[]
go next
end if
end