fugigoose --
Thanks for the great help. I had success with the button method – no success with the key method.
Before I ask any other questions, I should probably explain what I am trying to accomplish…
I’m creating a corporate game “Corporate Feud” (ugh – I know) to be run “live” with a person controlling the game as it is projected on large screens. The question is displayed at the top of the screen. The answer is in four parts and stacked up top to bottom in the middle of the screen and hidden until the correct answer is given (think “Family Feud” survey board).
Since it’s highly unlikely that anyone (team) will be able to choose the “survey” answers sequentially (top to bottom), I need to be able to make any one of them appear and stay until the next correct answer is given and adds on.
Your explanation for the buttons “on/off” works great for this. In that scenario, I could line up four buttons on the bottom of the screen and click on them as the correct answers are given.
Better yet…
I could do it with keystrokes and the people in the audience would not have to see an annoying little cursor flying back and forth across the bottom of the screen.
And so now -- more questions:
I can’t seem to get the keystroke method to work. It probably has to do with me being still a bit fuzzy with where exactly to enter the script. I was able to go to “movie script,” but no luck. I’m assuming the script attaches to the sprite that will be appearing and disappearing – yes? I understand that in the button method, the script attaches to the button which in turn, controls a sprite – or in my case – the correct answer.
Here’s what I am doing (or doing wrong) to try and make the keystroke method work:
-- Right click on the sprite to be turned on/off, which is on the stage
-- Choose “script” on the popup menu
-- In the behavior script window, I hit the little italicized “i” to bring up the property inspector
-- In the property inspector I switch “type” to movie (the window title bar now says “movie” as you stated)…
-- I paste in this script – exactly as shown:
on keyUp
if the key = ("a"

.charToNum then
if sprite(x).blend = 100 then
sprite(x).blend = 0
else
sprite(x).blend = 100
end if
end if
end
-- I fill in the (x) with my sprite number (which is 3 in this case). The code now looks exactly like this:
on keyUp
if the key = ("a"

.charToNum then
if sprite(3).blend = 100 then
sprite(3).blend = 0
else
sprite(3).blend = 100
end if
end if
end
-- I close the property inspector, bring the stage to the front and hit play
-- I press “A” on the keyboard….nothin’ happens!
Where am I going wrong?
And further – I will have four or five questions -- all with four part answers, so 16 to 20 answers in all. Is the keystroke method best for this? When I switch to the next question and the corresponding “survey” answers, do I have to use all new keys for those? Or…can I use the same keys for each set of “survey” answers – say 1 thru 4 at the top of the keyboard?
“And the survey says…”!
Again thanks for all of the great information. Your help has been very appreciated!
Sorry for the long winded post…