Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

need help to build searchbox with xml

Participant ,
Jun 11, 2013 Jun 11, 2013

hi , i want to create search bar , not a real search cause my content is not full dynamic and xml ...

i just want to simulate it ...

i want when i type the name of product in search box ( it will be great if have some autocomplete )

i want to define these product keywords in xml and link every of them to sperated frame ...

i know this forum is for solve problems , so it will be great if you guide me or link me to some source or examples , thanks

TOPICS
ActionScript
681
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 11, 2013 Jun 11, 2013

to start, do you know how to load and parse xml?

if not, check the urlloader class.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 12, 2013 Jun 12, 2013

thanks for replay

i`m familiar to load xml data and text but i dont have any clue about how simulate a search engine and how add eventlistender and gotoAnd function to every of them

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 12, 2013 Jun 12, 2013

use a textfield listener function to check the user's input and check that against your keywords in your xml.  unless you have a very small number of keywords, it's impractical to use goto.  you should use code to change the display based on the keyword matched.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 14, 2013 Jun 14, 2013

thanks dear kglad ...

i will try , it seems i must learn more about textfield listener and xml

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 14, 2013 Jun 14, 2013
LATEST

oh, you have a lot more than that to learn.  but you should start with loading and parsing xml.  then continue with the textfield listener and finally you'll need to use the flash string and possibly array methods.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines