Friday, 21 October 2011

WEEK 5 : Text Entry Question

This week task is to create a Text Entry Question.



1.  Create this layout with the question like above unsing Text Tool(T).
2.  Using Text Tool, create an input box as above. Put the variable as answer
3. Next, using Text Tool, insert a Dynamic Text Box. Set the variable as respon and check the Auto Kern.


4. Insert 2 button. Pause and Stop.
5.  Insert this script behind the pause button.
on (release, keyPress "<Enter>") {if (answer == "carbon monoxide and other hydrocarbons")
{respon="Correct";
    }else{
        respon="Incorrect. Your answer " +answer+ " is incorrect";
}
}
6.  Insert this action scrip behind the end button.
on (release) {gotoAndPlay("Scene 1");

}
















No comments:

Post a Comment