Skip navigation
Currently Being Moderated

Text Input Suggestions Box (Please Help)

Jun 20, 2012 1:49 PM

Tags: #help #script #text #action #suggestions #actionscript #navigation #box #animation #building

I am making an application to help people navigate through a large office building. I made a long switch containing all the room numbers. When the room number is typed in, it goes to an animation of that room highlighted on an image of the building's floorplan.

 

What I was hoping to do is make it so that as the user is typing the room number, a box below the text input box begins displaying suggestions, and the more the user types, the more it narrows the suggestions down. I was hoping to do this because the room numbers for the building are a very long mix of letters and numbers.

 

I've tried doing some research, but have not been able to find anything. Any help would be appreciated. Thanks.

 
Replies
  • Currently Being Moderated
    Jun 20, 2012 2:06 PM   in reply to cmforte

    The textfield should be supported by a CHANGE event, such that as characters are entered or removed an event is triggered that can be used to call a function.  The function would be where you deal with the suggestions.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2012 6:57 PM   in reply to cmforte

    You'd probably not want to use a switch unless you have already reasoined a way to do so.  It depends how you are analyzing the entry.

     

    I don't know what you mean as far as using a component.  I wouldn't use one for anything you have talked about so far... just an input textfield, a dynamic tectfield (for the suggestions), and code are all I see you needing so far.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 7:58 AM   in reply to cmforte

    I'm not sure how a drop down list works into this.  What purpose would it serve?  If the suggestions are not something you would select from, then I would just use a dynamic textfield set to autoSize itself and list the suggestions in that textfield.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points