Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
to start, do you know how to load and parse xml?
if not, check the urlloader class.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
thanks dear kglad ...
i will try , it seems i must learn more about textfield listener and xml
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now