PDA

View Full Version : Input Text Box Help


LFRider91
11-27-2009, 10:09 PM
So i am creating a test, in the first frame i want the user to input their name in an input text box and then have it display at the end. Now how would i go about doing that.

I have set it like this:
stop();

var n1=String;
starttest_mc.addEventListener(MouseEvent.ROLL_OVER ,overit);
starttest_mc.addEventListener(MouseEvent.ROLL_OUT, outit);
starttest_mc.addEventListener("click", asdf);
starttest_mc.textAnimation.textBox.text="Start Test";

function asdf(click) {
var n1:String=String(n1_txt.text);
gotoAndPlay(2);

}

function overit(e:MouseEvent) {
starttest_mc.gotoAndPlay(2);

}

function outit(e:MouseEvent) {
starttest_mc.gotoAndPlay(7);
}

Now when i play it it comes up on the last frame saying [Class String]

any help would be appreciated