-
[F8] Using Input Text To Change Frame
I have an input text field on one of my frames and I want to make it so if the user types in "Ok" and presses enter it sends them to a different frame in my animation. How would I go about doing this?
Thanks in advanced,
Hughesy
Ps. Sorry if this is in the wrong section, I haven't really used these forums much.
-
Put this on frame 1 of the timeline:
ok_btn.onPress = function() {
if (input_box.text == "ok") {
_root.gotoAndStop(2);
}
}
The ok button is called ok_btn, and the input box is called input_box.
John
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|