I have progressed through the if-then part of my little test project with one button and one field to uncover a picture when the correct answer was typed in.
With that success, I then went on to where I made 3 more copies of the picture and three more copies of the button. All on my own, using the dictionary, I figured out how to use just one field to present the word and test the student's answer for any of the buttons by moving it to cover the clicked button, so I didn't need to make any more copies of the field. When all four words have been presented and answered (just using the same word for now, though), the four buttons and the field are hidden so that the whole picture has been revealed (4 copies of the same picture for now).
The problem arises when I want to reset the test. Only Buttons 1, 2, and 3 reappear after the "show" command (message? function?), while button 4 remains stubbornly invisible. Thinking that perhaps Button 4 didn't reappear because it was the last in the order, I changed the order of the commands on the Reset Button, but it was still Button 4 that did not reappear. I've put them back in the original order since it made no difference. I couldn't find any hints as to the nature of the problem in the Dictionary.
The stack is attached. (sigh) I'm sorry I'm so dense. This is all the more frustrating because it is so embarrassingly simple.
"show button" not working?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
"show button" not working?
- Attachments
-
- WordGameTester.rev.zip
- (1.88 KiB) Downloaded 272 times
2nd-grade Teacher, Poultry Fancier, Scottish Country Dancer
and Perpetual Beginner
and Perpetual Beginner
Re: "show button" not working?
Bantymom,
you forgot the add the word button before the name to indicate what kind of object you wanted to show. You had: show "button 1", it should be: show button "button 1".
kind regards
Bernd
you forgot the add the word button before the name to indicate what kind of object you wanted to show. You had: show "button 1", it should be: show button "button 1".
Code: Select all
on mouseUp
show button "button 1"
show button "button 2"
show button "button 3"
show button "button 4"
put empty into gWord
put empty into field "word"
show field "word"
set the backgroundColor of field "word" to yellow
wait 1 seconds
hide field "word"
end mouseUp
Bernd
Re: "show button" not working?
*hits head*
I might have thought of that if the other three didn't show either, but I don't care why they did and the fourth didn't. I'm just glad you have come to my rescue.
Thanks!
I might have thought of that if the other three didn't show either, but I don't care why they did and the fourth didn't. I'm just glad you have come to my rescue.
Thanks!
2nd-grade Teacher, Poultry Fancier, Scottish Country Dancer
and Perpetual Beginner
and Perpetual Beginner