Flash input text box input form- Clear initial value when clicked.

Posted on 2007-07-30
Last Modified: 2008-04-15
I have a search field/form in Flash MX that has the word "Search" as the initial value and I would like to have it clear when clicked instead of having to swipe it out and delete it.

Any ideas?
Question by:kylevn
    LVL 34

    Accepted Solution

    use "TextField.onSetFocus" event for your requirement..

    here is the sample code, assuming ur TextField instance name is "myText":

    myText.onSetFocus = function()
          myText.text ="";

    Aneesh Chopra

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Adobe Photoshop CC 2015

    Photoshop has become the standard in image manipulation among professional photographers and graphic designers. This course covers exam objectives for the Adobe Certified Associate (ACA) certification.

    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    761 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

    11 Experts available now in Live!

    Get 1:1 Help Now