It works!

What a perfect way to start a week! Thanx!

=)
Angela


Date: Fri, 19 Oct 2001 14:44:16 -0700
From: Buzz Kettles <[EMAIL PROTECTED]>
Subject: Re: <lingo-l> How to make a pause button

Brad sent me a note offline & mentioned that perhaps the script 
should use an exitFrame handler instead than a enterFrame.

Actually, THIS IS REQUIRED since 'go to anything' doesn't work from 
an enterFrame handler.

so here's a fully updated behavior:

- ----------------
property proceed

on beginSprite me
   proceed = FALSE  -- sets the initial state so it stops
end

on mouseDown me
   proceed = NOT proceed  -- inverts the current state
end

on exitFrame me
   if proceed then go to (the frame +1)   -- goes forward
   else go to the frame                   -- or doesn't
end
- ---------------

hth

- -Buzz



[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