How to put a search bar into flash

Posted on 2006-03-20
Last Modified: 2010-04-03
Hey guys n girls.

Just a quick question. How can i get something like msn or google search into flash

what i want to do is have a text box and a button. when i click the button it will sub the search query in the text box into a google url

for example is i search elvis it would redirect me to this

Thanks for your help in advance
Question by:fedders_world
    LVL 16

    Accepted Solution

    1. Make your input textbox and give it the Var: myQuery

    2. Make your button and give it the action:
    on (release) {
    getURL("" + myQuery + "&btnG=Search&meta=");

    Or if you want it to open in it's own window:
    on (release) {
    getURL("" + myQuery + "&btnG=Search&meta=", "blank");


    Author Comment


    This works 50%. Sorry it took me so long to reply, have been away.

    Anyway if i use this action script it loads google, but not the search query. it just loads a blank google page.
    I am using Flash MX 2004.

    The textbox is set as myQuery as you suggested.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now