Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio Buttons & Quiz problems

Status
Not open for further replies.

Toka

Technical User
Sep 5, 2003
3
GB
Hi

I am a newbie where lingo is concerned, and i have looked through books and previous postings to see if I could resolve this problem.

1.I have created a quiz. Firstly I have tried to use the radio button behaviour, but it seems quite temperamental, not sure if im putting the right parameters in. Im assuming the group should be the same number for all 4 buttons and that the buttons shouuld be one in each channel. PLZ could someone shed any light on this.

2. I have written a start movie script to set my variable to 0 for the quiz.
on startmovie
global gscore
set gscore = 0
end

I have added a onmouseUp script to the correct buttons, also increasing the score by 1, and to take me to the next page.

on mouseUp
global gScore
gScore = gScore + 1
put gscore into field "Result"
go next
end

I have put a small script on the incorrect buttons to take it to the next screen(question)

on mouseUp
go next
end


I have created a field called Result to display the score.

The problems I am having are
1. It does not go to the next screen
2. The result increments to 1 then to 3 on the second question.
3. The text field that displays the score does not reset itself so the 3 stays displayed in it even if i restart the movie.

Also i would also like to display at the end of the quiz which questions they got right and which they got incorrect, not sure how to do this. Could create ten txt fields on one page an also add to button code to add correct of incorrect to txt box depending which answer.?


If anyone could help me with any of the above I would really appreciate it.

Thanks in advance

K

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top