A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Using Input Text To Change Frame

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    3

    [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.

  2. #2
    Member
    Join Date
    Oct 2007
    Posts
    50
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center