At 15:32 -0400 07/25/2002, [EMAIL PROTECTED] wrote:

>Can someone please tell me why this script doesn't work correctly? When I
>press the button the first time, 5500 is entered as it is supposed to, when
>I hit the button the second time, no change. What am I missing here?

The text of field, not the field. Also, you cna get rid of the 
floatprecision setting. You don't need it. Try this:

   on mouseUp
     if the text of field "s1" = "0" then
       put "5500" into field "s1"
     else
       if the text of field "s1" = "5500" then
         put "0" into field "s1"
       end if
     end if
   end

-- 

              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
         http://shop.osborne.com/cgi-bin/osborne/0072195622.html
[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!]

Reply via email to