At 21:05 +0100 02/19/2002, H.F. Duijndam wrote:
>Who can help me with this, i have several fieldmembers which the user has to
>fill in with the right word. After typing his answer he should use the enter
>or the return key to jump (go) to the next field he/she should fill in until
>the test is completed.
Well, to make life easier I'd suggest setting up your #text members
such that (in the Property Inspector) their "Editable" and "Tab to
next editable item" checkboxes have been selected. That way TAB will
have this effect.
Using RETURN/ENTER is kind of nonstandard. While setting it up so you
can move from sprite to sprite is certainly possible, it's kind of a
pain and, IMO, requires considerably more scripting than it's worth.
You can trap RETURN / ENTER and beep; try attaching this to all your editables:
on beginSprite me
sprite(me.spriteNum).member.text = ""
end
on keyDown me
if the key = RETURN or the key = ENTER then
stopEvent
BEEP
else
pass
end if
end
This, sans movie script, will clear the #text members and prevent
users from accidentally hitting the wrong key.
--
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://www.osborne.com/indexes/beginners_guides.shtml
[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!]