Google Search
Google
Most wanted Softwares
Useful links
Image of the day
Copy Right
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.

 Bollywood Songs | Kollywood Songs | Western Music | Tutorials | Info | Software | Wallpaper

 
Wednesday, September 13, 2006
google search in swf file | Flash
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.

Code:
on (release) {
getURL("http://www.google.com/search?hl=en&q=" + _root.terms.text, "_blank");
}

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.
posted by Mr COOL @ 7:44 AM   0 comments
0 Comments:
Post a Comment
<< Home
 
Tutorials

All u want 2 know

Previous Post
Archives
Links
Random Pages

Request Section
Leave your Comment

Powered by
& The S-Cube International