>Can anyone told me hoe to create a 10 seconds count down timer?

This is assuming you have Director 8 or later.

Disclaimer: untested Lingo. You may have to debug it yourself.

-- attach this behavior to a button
-- assumes you have a field on-screen named "count display"

global countDown

on mouseUp me
   countDown = 10
   put countDown into field "count display"
   timeout("countDowner").new(1000, #updateCountDown)
end


-- in the movie script
global countDown

on updateCountDown
   if countDown > 0 then
     countDown = countDown - 1
     put countDown into field "count display"
   end if
end

Cordially,

Kerry Thompson


[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!]

Reply via email to