Solved

Creating search form in Flash

Posted on 2000-03-31
13
202 Views
Last Modified: 2010-04-03
We're redesigning our web site using only Flash 4. We want to add a search form. Does anyone know if this is possible, and if so, how it can be done?

Thanks
0
Comment
Question by:debtoine
13 Comments
 
LVL 3

Accepted Solution

by:
SuperMario earned 300 total points
Comment Utility
If you want to search the entire web, you'll be interested in this string:

http://www.search_engine_address.com

If you only want to search YOUR site, you'll be interested in this string:

/cgi-bin/my_search_script.cgi

assuming that your CGI script to search is in your root/cgi-bin directory.

Now, create a text field for the user to enter the search string. Its name will be, by default, TextField1. Change that by going to TextField Properties. What you change it to depends on what variable your CGI script uses as the query. For example, if your CGI script searches using a query called "query" (which holds the data of the user's search string), you would name the TextField "query" .

Is this too much for you? If so, let me know.

Now, create a basic Submit button, and drag an instance of it onto the stage. Right click and go to Properties. Click the Actions tab. Add the Get URL action. Enter one of the strings mentioned above depending on search engine or CGI script use.

Got me? =)

-Dan
0
 

Author Comment

by:debtoine
Comment Utility
Before I try this and award the points, I have not been able to find a cgi script that searches for text in a Flash only web site. All search cgi scripts I have found are searching content on html files.
0
 
LVL 3

Expert Comment

by:SuperMario
Comment Utility
You'll have to create a hash in Perl and develop a structural link between keywords and scenes.
0
 

Author Comment

by:debtoine
Comment Utility
Before I try this and award the points, I have not been able to find a cgi script that searches for text in a Flash only web site. All search cgi scripts I have found are searching content on html files.
0
 

Author Comment

by:debtoine
Comment Utility
Adjusted points from 250 to 300
0
 

Author Comment

by:debtoine
Comment Utility
And now in layman's terms?

I don't know Perl and just started using Flash. Would you be able to give an example?

Am I in over my head?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Expert Comment

by:SuperMario
Comment Utility
Hmm....

To achieve the effect you're pursuing, you should either attempt to learn Perl or get somebody to write a script for you. You could also try using Generator. The problem with Flash is that you can't directly access the text. =/

-Dan
0
 

Author Comment

by:debtoine
Comment Utility
And now in layman's terms?

I don't know Perl and just started using Flash. Would you be able to give an example?

Am I in over my head?
0
 
LVL 3

Expert Comment

by:SuperMario
Comment Utility
I could give you an example in Perl, but that's a whole other story.
0
 

Author Comment

by:debtoine
Comment Utility
Dan,

Do you know a URL with examples of this application? I can't believe I am the first "Flash novice" to want a searchable Flash site.

Will double points for anyone who can give me specific (step by step) instructions for this.

I also can't figure out why each of my comments is posting twice....(obviously this is not important, just annoying).
0
 
LVL 3

Expert Comment

by:SuperMario
Comment Utility
Are you double-clicking the Submit button?
0
 

Expert Comment

by:bobkatz
Comment Utility
debtoine - The Flash part of your question is fairly straightforward, I think marioboy has cover that.

The CGI part of it is another thing as he has mentioned. In order to search, you must have something to search, be it a file or (preferrably) a database. Doing keyword searches on a "flat file" are rather complex even though Perl is the best at it.

Setting up an SQL database would seem to be the smart thing to do. There are some very simple ones out there (Postgres, mySQL are free) but the catch is that you need some in house expertise to set it up for you. The questions you need to answer are:

1)what operating system is your server  running? (Linux I hope).
2)do you have access to a database programmer (as someone who is redesigning their web site in all Flash that would be an assumption - but from my past experience  - I know better than to make any, hehhe)
3)do you have in-house CGI programming experience? (ex-house can be $$$!)

Again with the right resources, both hardware and expertise-wise, these are not very complex issues but, on the other hand, they really are not Flash issues either.

When you have answered the above qusetions, I will be able to advise you further. Good luck! And (as our Oracle database guru always says) -

Keep Smilin'

Bobkatz
0
 
LVL 1

Expert Comment

by:larry718
Comment Utility
Here's a link that would be helpful:
http://www.virtual-fx.net/activesearch.html
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now