Forum Moderators: open

Message Too Old, No Replies

Search in Flash

         

andmunn

5:42 am on Sep 8, 2003 (gmt 0)

10+ Year Member



I have a webpage at:

<snip>

If you look, there is a "field" in the top flash logo that i want to work as a search function. At the bottom right of the page, there is an HTML search button that is working just fine... the variables are:

<form method="post" action="modules.php">
<input type="hidden" name="op" value="modload">
<input type="hidden" name="name" value="Search">
<input type="hidden" name="file" value="index">
<input type="hidden" name="action" value="search">
<input type="hidden" name="overview" value="1">
=<input type="text" name="q" size="14">
<input type="hidden" name="active_comments" value="1">
<input type="hidden" name="active_downloads" value="1">
<input type="hidden" name="active_faqs" value="1">
<input type="hidden" name="active_weblinks" value="1">
<input type="hidden" name="active_reviews" value="1">
<input type="hidden" name="active_sections" value="1">
<input type="hidden" name="active_stories" value="1">
<input type="hidden" name="stories_topics" value="">
<input type="hidden" name="stories_cat" value="">
<input type="hidden" name="stories_author" value="">
<input type="hidden" name="active_users" value="1">
</form>

Now, how exactly do i get this coded into flash? My knowledge of flash is usually limited to the GetURL function :)

Thanks,
Andrew.

[edited by: korkus2000 at 12:20 pm (utc) on Sep. 8, 2003]
[edit reason] No personal URLs please [/edit]

kingkelly

4:47 pm on Sep 8, 2003 (gmt 0)

10+ Year Member



You can create an input textbox, call it q.
Make a submit button... Im just not sure about the hidden variables.... If youre using Flash MX, theres a Forms components windows that lets you drag in text fields, buttons, etc.... I forget what the actionscript is, but its pretty short.... Something about GetURL and LoadVariables....

andmunn

5:08 am on Sep 9, 2003 (gmt 0)

10+ Year Member



Thanks for the help..

the "text field" is already created, as is the submit button... what im confused is how do i get the actual search script somehow embedded within the flash?

I'm using postnuke, and it has a search function built in, which i need to transfer over to this "flash" area....

Is this thrugh the load variables function? the script i wrote above is how the search box is configured in plain HTML, so i'm figuring all those "<input ="xxx">" need ot somehow be configured into the flash.

Thanks,
Andrew.

kingkelly

5:42 pm on Sep 10, 2003 (gmt 0)

10+ Year Member



are you planning on displaying the results in flash, or just popup a new window?

andmunn

10:44 pm on Sep 11, 2003 (gmt 0)

10+ Year Member



hello,

no, the results won't be displayed in flash...they will be displayed hopefully on another page (i.e// a blank "search results" page.) In fact, hopefully they can be displayed on the same page the "non flash search button " displays them in.

I hope htat makes sense =) i'm running postnuke, it already has a built in flash feature, which displays the results on a certain page.

I'd like this "flash search button" to display the search results in the same page the non-flash-search-button does....

Any tips?

Thanks,
Andrew.