Tutorials
is offering Files for download that are protected by copyright laws.
Unless stated explicitly, all songs on this website belong to the owners
of their copyrights, and may NOT be distributed without their prior
consent. By downloading the Files, you agree to undertake any
responsibility that is associated with the protection of their
copyrights.
In this tutorial, we will learn how to create a simple Google search tool in flash.
First thing first, open up flash and create a new document. Now you need to find a google logo, you can use to show your users that the search they are using is a google search.
Next, bring up the Components menu (Ctrl + F7). Drop down the area labelled "User Interface" and scroll until you see the component "Text Input". Click and drag out onto your workspace. Then click on it, go to the properties menu, and set its Instance Name to "search" with no quotes.
Again, go to the components menu. Scroll until you see the "Button" component, and drag it out onto your workspace. Click on it, go to its Properties / Parameters, and set its Instance Name to "Google Search" with no quotes. Make its label in parameters say "Google Search" as well.
The next step is to click on the Button you just dragged out onto the stage. Open up the actions area (F9) and type in this code.
Basically this will open up the viewers browser at google.com and whatever they have entered in the text box, will be searched for.
You should now be able to export the flash, and test it. If you have done everything correctly, you should be able to now search google from your flash document.