View Full Version : Search function
xxlfm
06-10-2007, 05:31 PM
is it possible to have search function in Flash?
It's trival to have a serach site function in no-flash site, user enter a keyword and return all the files with the word inside.
How can I acheive this in Flash site, since all the texts are inside text box? Is any way to do that?
I see a lot of Flash templates which have those Search (even advanced search), but I really dont get how it can be done.
Thanks for help.
alexjewell
06-10-2007, 06:53 PM
Yes, but the easiest way is to implement PHP in the flash. Use a MySQL database, too.
Medyman
06-10-2007, 08:26 PM
is it possible to have search function in Flash?
It's trival to have a serach site function in no-flash site, user enter a keyword and return all the files with the word inside.
How can I acheive this in Flash site, since all the texts are inside text box? Is any way to do that?
I see a lot of Flash templates which have those Search (even advanced search), but I really dont get how it can be done.
Thanks for help.
For text directly embedded into Flash, I don't see how this is possible. The search function would effectively have to decompile the Flash and index the text that way.
The way to do it would be if the text is being brought in dynamically (via XML, flashvars, text files, etc..). Then the flash function could search though that. Or do what the above user said with php/mysql.
It could be done with AS but it's probably more trouble than it's worth.
xxlfm
06-11-2007, 05:05 PM
ok, I just redirect the serach to google then :) maybe next is to try the dynamically loaded text for search.
on (release) {
var strSearch = _level0.instance44.mcInput.txtSearch.text;
//trace (strSearch);
getURL("http://www.google.com/search?q=" + strSearch, "_blank");
}
and I really like the TRACE (THIS)!!!!
http://t3.baidu.com/it/u=1199633284,80254480&gp=40.jpgThanks again!
queerfm
12-09-2007, 12:48 PM
sorry i have made a text inout field called strSearch and a button using this action code but not working. can you help
queerfm
12-16-2007, 01:15 PM
Can any one get this to work?
Thanks
BLiZZaRD
12-16-2007, 05:21 PM
Depends on exactly what you mean, the original message, or the modified one.
I have added an fla (in Flash8) that shows an input box, a button to press and the code that will open Google in a new window with the results from the word that was put in the text box.
If that is what you need, then there you have it. If it is not, ask again :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.