|
Selteco.com > FlashDesignerZONE.com >
Tutorials > T1003
This tutorial demonstrates how to create an edit field and post it to an URL using query string. We will invoke Google search from our Flash document. Minimum Flash Designer version: 5.0.21.2
Create INPUT field and "Search" button
Build a "query string" and send it to Google web siteGoogle search URL is "http://www.google.com/search" and the parameter is "q". For example, if we want to search for "selteco" the full URL would be "http://www.google.com/search?q=selteco".Use the following ActionScript code:
System.Security.allowDomain("www.google.com");
searchURL = "http://www.google.com/search?q=" + Edit1;
getURL(searchURL,"_blank");
The first line builds search URL and the second line posts the URL to Google web site. If you want to display search results in the same window use "self" instead of "_blank" target.
Finally export the animation.
Download Flash Designer source project: t1003.zip (0.6 kb)
|
|
Products
|
Purchase
|
Downloads
|
Support
|
Flash Tutorials
|
Contact
|
Privacy Policy
|
Avoid Piracy
|
Jobs
Copyright © 1999-2011 Selteco Software, 1821 Walden Office Square, Schaumburg, IL 60173, Ph: +1-800-490-0407 |