I tried exactly that and I got this error:

Script error: variable used before assigned a value.

put ""? into field "spritecountField"

I want the count to start at "1" as well.  I guess I would put "1" into 
field "field name" (if it were working), and after 10 has been reached the 
count begins at one again.

Any idea what's wrong?

(The script IS attached to the button & I'm using Director 8, if that has 
any effect on the outcome?)

-NT


-- button script
property pNum

on beginSprite me
� pNum = 0
� put "" into field "field name"
end

on mouseUp me
� if pNum > 10 then exit
� pNum = pNum + 1
� put pNum into field "field name"
end

----------------------------------------------------------
Ramesh CT
Phoenix Global Solutions (I) Pvt Ltd
http://www.lingoman.net/
----------------------------------------------------------
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


[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