This is what I used of that code (because that code didn't add "1" on 
mouseUp):

property pNum

on beginSprite me
  � pNum = 1
  � put pNum into member "spriteCountField"
end

on mouseUp me
  � if pNum > 10 then
  ��� pNum = 1
  � end if
  � pNum = pNum +1
  put pNum into member "spriteCountField"
end


And I get this error:

Script error:  Variable used before assigned a value

pu pNum? into member "SpritecountField"

Any clues?  My field is named correctly and my script is attached to my 
button...

-nt






Script error: variable used before assigned a value.

put ""? into field "spritecountField"

Assuming you have a cast member spritecountField, try:

put "" into member "spriteCountField"

�       �       I want the count to start at "1" as well.

on beginSprite me
� pNum = 1
� put pNum into member "spriteCountField"
end

on mouseUp me
� if pNum > 10 then
��� pNum = 1
� end if
� put pNum into member "spriteCountField"
end

Off the top of my head, and untested, but I think that's it.




_________________________________________________________________
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