On 1/4/06 9:51 pm, "Michael Nadel" <[EMAIL PROTECTED]> wrote:
> Is there anyway to pause the "timer-behavior" that comes with Director?
> The command "pause" doesn't help, once you tell it to "continue" it
> jumps to a few seconds later (or however long you were paused for)...
Hi Michael,
If you mean the Countdown Timer behavior in the Text Library Palette, then
you could replace the on prepareFrame handler with this:
--on prepareFrame me
-- mDisplayTime me
--end prepareFrame
property pPaused
property pPauseMillis
on prepareFrame me
if not pPaused then
mDisplayTime me
end if
end prepareFrame
on Pause(me)
pPauseMillis = the milliseconds - pStartMillis
pPaused = TRUE
end Pause
on Continue(me)
pStartMillis = the milliseconds - pPauseMillis
pPaused = FALSE
end Continue
You can now send #Pause and #Continue events directly to the sprite that the
Countdown Timer is attached to.
Does this do what you want?
James
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]