# I'm not getting any errors, but i'm making a trivia game

**URL:** <https://forum.kirupa.com/t/im-not-getting-any-errors-but-im-making-a-trivia-game/332139>\
**Category:** flash\
**Created:** [February 13, 2014, 1:10am UTC](https://forum.kirupa.com/t/im-not-getting-any-errors-but-im-making-a-trivia-game/332139 "2014-02-13T01:10:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coldkevin2](https://avatars.discourse-cdn.com/v4/letter/c/ed655f/32.png) [@coldkevin2](https://forum.kirupa.com/u/coldkevin2)\
**Post date:** [February 13, 2014, 1:10am UTC](https://forum.kirupa.com/t/im-not-getting-any-errors-but-im-making-a-trivia-game/332139/1 "2014-02-13T01:10:42Z")

</div>

[COLOR=#000000][FONT=Arial]I’m not getting any errors, but i’m making a trivia game (Specifically a free answer section) In the stage, there is an input textbox, and a button. I’m trying to make it so that a user could type in an answer on it and submit it. The answer, in this case, is 4, and if the student types in 4 and clicks submit, it’ll jump to frame 3. If they put something other than four, then it will go to frame 23, aka, the “You lose” frame. Is there anything I should change?  
[/FONT][/COLOR]

[COLOR=#00008B]function[/COLOR] handleClick(pEvent:[COLOR=#2B91AF]MouseEvent[/COLOR]):[COLOR=#00008B]void[/COLOR] {  
[COLOR=#00008B]if[/COLOR] (fouryears.text == [COLOR=#800000]“4”[/COLOR]) {  
gotoAndStop([COLOR=#800000]3[/COLOR]);  
}  
[COLOR=#00008B]else[/COLOR] {  
gotoAndStop([COLOR=#800000]23[/COLOR]);  
}[COLOR=#000000][FONT=Arial]}  
submitbtn.addEventListener(MouseEvent.MOUSE\_UP, handleClick);

Thank you[/FONT][/COLOR]
