GOOGLE SEARCH BAR IN FLASH FOR YOUR SITE

 

Quality of a site is always determined by the way it interacts with the users. Now we are here to make a google search bar with flash. You can also modify it so as to make a site search in google if yours is indexed in google.Now Through this simple tutorial to make a google search bar in flash

  • Create a new flash document
  • (optional) Go to Modify>>Document and set movie size to 120*120
  • Add a text field on stage and set the options as shown below

 

  • Now add a text "Search google" as in the top movie.
  • Now Select Windows >> Other Panel >> Common Libraries >> Buttons to open up the buttons panel add drag an oval button as shown below .

  • Now with the button selected Press " F9 " to open up actions panel for the button and add the following code

    on(press){
    getURL("http://www.google.com/search?q="+search.text,"_blank");
    }

     

CODE EXPLANATION

Here getURL function get the url for search in google.com in a new _blank window with the search text as input text with instance name search

format

getURL("address","_blank")

here the 2nd parameter blank represents the window in which results open . It can be _self or _parent etc according to the requirements

 
 
 
   

©2007 flashhelp.110mb.com