# Multiple choice answers without using components

**URL:** https://forum.kirupa.com/t/multiple-choice-answers-without-using-components/198001
**Category:** flash
**Created:** [August 21, 2006, 6:11pm UTC](https://forum.kirupa.com/t/multiple-choice-answers-without-using-components/198001 "2006-08-21T18:11:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hogfish](https://avatars.discourse-cdn.com/v4/letter/h/b19c9b/32.png) [@hogfish](https://forum.kirupa.com/u/hogfish)
#### Post date: [August 21, 2006, 6:11pm UTC](https://forum.kirupa.com/t/multiple-choice-answers-without-using-components/198001/1 "2006-08-21T18:11:23Z")

</div>

GM!,

//dynamic Text field called “track” to capture true or false values  
//dynamic text field called “feedback” lets user know if answer is correct or wrong  
//button called “submitBTN” if track.text=true then when you press submitBTN it does //something

// It all works except; I want user to click all 3 correct answers before they can click  
submit.

//right now if you click on correct answer you can click submit.

//Can anyone help me.

Here is the script I have on the submitBTN  
/\*  
on(release) {  
if(track.text == “true”) {  
gotoAndStop(“correct”);  
}  
}  
\*/

track.text = “false”;

question1\_true.onRelease = function () {  
if(this.question1\_true.onPress = true ) {  
question1\_true.\_alpha = 15;  
feedback.text = “Great Job!”;  
track.text=“true”;

}  
}

question2\_false.onRelease = function () {  
if(this.question2\_false.onPress = true ) {  
question2\_false.\_alpha = 100;  
feedback.text = “Sorry, that is incorrect”;  
track.text=“false”;  
}  
}

question3\_true.onRelease = function () {  
if(this.question3\_true.onPress = true ) {  
question3\_true.\_alpha = 15;  
feedback.text = “Fantastic!”;  
track.text="";  
}  
}

question4\_true.onRelease = function () {  
if(this.question4\_true.onPress = true ) {  
question4\_true.\_alpha = 15;  
feedback.text = “Very Good!”;  
track.text=“true”;

}  
}
