PDA

View Full Version : ?Google Search?


skidpanda
01-05-2003, 04:57 PM
Is there anyway of having a input text file submit information to the google search engine automatically.

User would enter the info, press a button, a new window would open showing search results..

If not is there anyway of entering search data, then loading the google window with the search criteria already entered into the google text field?

I saw a.fla on flashkit that did the first thing ^ but it doesnt seem to work anymore - it just comes up with a blank google window.

Thanks for any help,

Skid :eye: :crazy:

senocular
01-05-2003, 05:42 PM
on(release){
getURL("http://www.google.com/search?q=" + escape(inputField.text), "_blank")
}


where inputField is the instance name of the input field you wish to give a google search for

skidpanda
01-05-2003, 06:24 PM
Thanks very much thats just what I needed.

:) SKid

pom
01-05-2003, 06:39 PM
rate rate rate rate... :crazy:

FlashSwimmer
01-05-2003, 08:09 PM
on(release){
getURL("http://www.google.com/search?q=" + escape(inputField.text), "_blank")
}
it's good ..... :P
but can anyone explain to me what does it means?

?q=" + escape(inputField.text), "

thanx =)

pom
01-05-2003, 08:13 PM
a="I'm @ home";
trace (escape(a));returns I%27m%20%40%20home.
It's just formatting.

pom :+)

FlashSwimmer
01-05-2003, 08:20 PM
oooooo
thanx Pom, long time to see your Pom in one of my Question...:beam: .

anyway i think i got now.

thanx =)
FlashSwimmer

pom
01-05-2003, 08:42 PM
I'm never too far, don't worry :P

Macro-design
01-21-2005, 02:15 PM
Is there anyway I can make it use the google images seach instead of the normal seach?

Macro-design
01-21-2005, 02:18 PM
I just figured out how to do that, just had to look at the url... I've changed the path, and then I've also made it release on keyPress, so if you press enter it seaches to.

on(release, keyPress"<Enter>"){
getURL("http://images.google.dk/images?q=" + escape(inputField.text), "_blank")
}

egoldy
01-30-2005, 10:11 AM
how to do a flash search like above kirupa site header .
when I seach I found the url is "search/atomz.........."
I like google.how can I do a search like kirupa's flash search.and only search my domain name.

Thanks a lot.

Ben H
01-30-2005, 11:03 AM
Well, you need your site to be indexed in google, then you do this:
on(release){
getURL("http://www.google.com/search?q=" + escape(inputField.text+" site:www.yoursite.com"), "_blank")
}

Lewwy
02-14-2005, 10:13 AM
Thanks for the info :) Very very useful to know !

Lewwy
02-23-2005, 01:54 PM
hmm, for some reason.. when I try to do this, whatever I type in the input box, google searches 'undefined' :(

anyone know why?

hl
02-23-2005, 02:32 PM
why is this in the best of kirupa?

Lewwy
02-23-2005, 03:23 PM
Cause its a problem thats been solved, and its quite cool..

But google still comes up as 'undefined'?

Macro-design
05-18-2005, 11:40 AM
If you could post either you AS or .fla file, it would be a big help.

But check the instance name, that's - I guess - would be the most likely error.

MEvsYOU
06-29-2005, 12:07 AM
Google Flash (http://www.productbeta.com/google/index.php)

Bokke
06-29-2005, 03:35 AM
i have'nt read the tread but:
that google thing looks great :)

TheMaxExp
07-19-2005, 11:07 AM
Wow, MEvsYOU thats awesome. You should tell people that you have a tutorial for it.

x_polar
02-21-2006, 06:51 AM
Off subject, hey TheMaxExp fellow, your site is a joke :thumb:
I love the hardcore AS.

jeckx2
04-11-2007, 12:20 PM
its what the thread says hehehe ;) but anyway good topic maybe i can use this google search at my flash site.

arianhafezi
03-07-2008, 11:36 AM
I past this script , but i receive undifind message form google search page.
please somebody let me know, where is my mistake!

take

3pepe3
08-14-2009, 10:02 PM
why is this in the best of kirupa?
i was thinking the same thing.... but well it's a post from 2005.

Actually for searchs using google we can use the google ajax api where we can search:
Web Search
Local Search
Video Search
Blog Search
News Search
Book Search
Image Search
Patent Search

Here you can find a class that implements this services (added the posibility to get the weather with google).

http://www.actionscript.org/forums/showpost.php3?p=822475&postcount=34
______________________________
http://www.pepemagana.com

orphicpixel
09-15-2009, 02:09 AM
wooh! what happened, i already made it to work, then when as i added more component and button to the flash movie, the keypress"Enter" is no longer working, what could be the problem