[Last Call] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2007-07-30
Medium Priority
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

Aneesh Chopra earned 2000 total points
ID: 19592609
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

ID: 19592846

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

825 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