Clear text fields button

Hi all

I am very new to Flash, but I need a button to clear all the entries in a form text fields, so that the user can delete all their data and start over.

Any hepl would be greatly appreciated.

Concerning

John

If you mean you want to deselect everything that is selected in the drop-down list, then you must set the property selectedIndex-1...

aCb.selectedIndex = - 1;

Tags: Adobe Animate

Similar Questions

  • Clear text fields

    I create a dashboard with lots of buttons that display pieces of text to an XML file. The problem is, I can't understand how to clear the text field, once it is posted. If I press another button, the new data will replace the old data, but if the new button is display a smaller set of data, it won't replace some of the old data set and the rest remains displayed. Who is?

    I found a code that removes the text fields, but I don't know where to put:

    ///////////////

    import flash.events.MouseEvent;

    import flash.text.TextField;

    var adminUnitsXML:XML;

    var adminloader:URLLoader = new URLLoader();

    adminloader.addEventListener (Event.COMPLETE, onAdminComplete);

    adminloader. Load (new URLRequest ("FY2012units.xml"));

    function onAdminComplete(evt:Event)

    {

    adminUnitsXML = new XML (adminloader.data)

    }

    var adminMeasuresXML:XML;

    var adminloadermeasures:URLLoader = new URLLoader();

    adminloadermeasures.addEventListener (Event.COMPLETE, onAdminCompleteMeasures);

    adminloadermeasures. Load (new URLRequest ("2011xmlmeasures.xml"));

    function onAdminCompleteMeasures(evt:Event)

    {

    adminMeasuresXML = new XML (adminloadermeasures.data)

    }

    -Buttons on unit-------.

    adminu1.addEventListener (MouseEvent.CLICK, adminu1Click);

    adminu2.addEventListener (MouseEvent.CLICK, adminu2Click);

    adminu3.addEventListener (MouseEvent.CLICK, adminu3Click);

    adminu4.addEventListener (MouseEvent.CLICK, adminu4Click);

    adminu5.addEventListener (MouseEvent.CLICK, adminu5Click);

    adminu6.addEventListener (MouseEvent.CLICK, adminu6Click);

    adminu7.addEventListener (MouseEvent.CLICK, adminu7Click);

    adminu8.addEventListener (MouseEvent.CLICK, adminu8Click);

    adminu9.addEventListener (MouseEvent.CLICK, adminu9Click);

    adminu10.addEventListener (MouseEvent.CLICK, adminu10Click);

    adminu11.addEventListener (MouseEvent.CLICK, adminu11Click);

    adminu12.addEventListener (MouseEvent.CLICK, adminu12Click);

    adminu13.addEventListener (MouseEvent.CLICK, adminu13Click);

    adminu14.addEventListener (MouseEvent.CLICK, adminu14Click);

    adminu15.addEventListener (MouseEvent.CLICK, adminu15Click);

    adminu16.addEventListener (MouseEvent.CLICK, adminu16Click);

    adminu17.addEventListener (MouseEvent.CLICK, adminu17Click);

    Here I attributed to plaintext to all buttons;

    adminu1.addEventListener (MouseEvent.CLICK, plain text);

    adminu2.addEventListener (MouseEvent.CLICK, plain text);

    adminu3.addEventListener (MouseEvent.CLICK, plain text);

    adminu4.addEventListener (MouseEvent.CLICK, plain text);

    adminu5.addEventListener (MouseEvent.CLICK, plain text);

    adminu6.addEventListener (MouseEvent.CLICK, plain text);

    adminu7.addEventListener (MouseEvent.CLICK, plain text);

    adminu8.addEventListener (MouseEvent.CLICK, plain text);

    adminu9.addEventListener (MouseEvent.CLICK, plain text);

    adminu10.addEventListener (MouseEvent.CLICK, plain text);

    adminu11.addEventListener (MouseEvent.CLICK, plain text);

    adminu12.addEventListener (MouseEvent.CLICK, plain text);

    adminu13.addEventListener (MouseEvent.CLICK, plain text);

    adminu14.addEventListener (MouseEvent.CLICK, plain text);

    adminu15.addEventListener (MouseEvent.CLICK, plain text);

    adminu16.addEventListener (MouseEvent.CLICK, plain text);

    adminu17.addEventListener (MouseEvent.CLICK, plain text);

    -Button of the device functions-------.

    Here's the function of clear text, but I don't know where to put this. When it is placed here, I can't get my text to display when I click on the buttons.

    function clearText(e:MouseEvent):void {}

    measures_txt. Text = "";

    measures1_txt. Text = "";

    measures2_txt. Text = "";

    measures3_txt. Text = "";

    measures4_txt. Text = "";

    measures5_txt. Text = "";

    measures6_txt. Text = "";

    measures7_txt. Text = "";

    measures8_txt. Text = "";

    measures9_txt. Text = "";

    measures10_txt. Text = "";

    }

    function adminu1Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu1.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu1.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu1.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [6].rdu.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [6].mmrslt.text ())

    measures2_txt. Text = (adminMeasuresXML.measure [7].mmrslt.text ())

    measures3_txt. Text = (adminMeasuresXML.measure [10].mmrslt.text ())

    measures4_txt. Text = (adminMeasuresXML.measure [11].mmrslt.text ())

    measures5_txt. Text = (adminMeasuresXML.measure [12].mmrslt.text ())

    measures6_txt. Text = (adminMeasuresXML.measure [13].mmrslt.text ())

    measures7_txt. Text = (adminMeasuresXML.measure [20].mmrslt.text ())

    measures8_txt. Text = (adminMeasuresXML.measure [24].mmrslt.text ())

    measures9_txt. Text = (adminMeasuresXML.measure [25].mmrslt.text ())

    measures10_txt. Text = (adminMeasuresXML.measure [26].mmrslt.text ())

    }

    function adminu2Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu2.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu2.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu2.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [6].rdu.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [14].mmrslt.text ())

    }

    function adminu3Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu3.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu3.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu3.employeect.text ())

    }

    function adminu4Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu4.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu4.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu4.employeect.text ())

    }

    function adminu5Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu5.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu5.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu5.employeect.text ())

    }

    function adminu6Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu6.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu6.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu6.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [1].mmrslt.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [8].mmrslt.text ())

    measures2_txt. Text = (adminMeasuresXML.measure [9].mmrslt.text ())

    measures3_txt. Text = (adminMeasuresXML.measure [27].mmrslt.text ())

    }

    function adminu7Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu7.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu7.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu7.employeect.text ())

    }

    function adminu8Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu8.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu8.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu8.employeect.text ())

    }

    function adminu9Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu9.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu9.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu9.employeect.text ())

    }

    function adminu10Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu10.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu10.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu10.employeect.text ())

    }

    function adminu11Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu11.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu11.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu11.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [2].mmrslt.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [3].mmrslt.text ())

    }

    function adminu12Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu12.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu12.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu12.employeect.text ())

    }

    function adminu13Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu13.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu13.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu13.employeect.text ())

    }

    function adminu14Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu14.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu14.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu14.employeect.text ())

    measures_txt. Text = (adminMeasuresXML.measure [4].mmrslt.text ())

    measures1_txt. Text = (adminMeasuresXML.measure [5].mmrslt.text ())

    }

    function adminu15Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu15.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu15.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu15.employeect.text ())

    }

    function adminu16Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu16.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu16.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu16.employeect.text ())

    }

    function adminu17Click(event:_MouseEvent):void {}

    UnitBudget_txt.text = (adminUnitsXML.adminu17.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu17.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu17.employeect.text ())

    }

    IN EAC h case when you assign text, if you want the textfields which have no new text to display nothing, then you must assign them nothing in the form of text.  What you could do for each case, it's the same unique feature allows to clear all fields before rewrite you everything, as in...

    function clearAll (): void {}

    UnitBudget_txt.text = UnitName_txt.text = UnitEmployees_txt.text = measures_txt.text = measures1_txt.text = "";

    }

    function adminu15Click(event:_MouseEvent):void {}

    clearAll();

    UnitBudget_txt.text = (adminUnitsXML.adminu15.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu15.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu15.employeect.text ())

    }

    function adminu16Click(event:_MouseEvent):void {}

    clearAll();

    UnitBudget_txt.text = (adminUnitsXML.adminu16.budget.text ())

    UnitName_txt.text = (adminUnitsXML.adminu16.uname.text ())

    UnitEmployees_txt.text = (adminUnitsXML.adminu16.employeect.text ())

    }

    and so on for all the others...

  • Clear text fields values without submit?

    Hello

    I have a screen with some text fields, two-button (first button runs a procedure of search and the other would erase the values in order to start a new search). The user wants to be able to clear the fields values without going through the submitted page. How can I do?

    Thank you.

    Hello:

    You could change the second page your buttons execute a javascript function that will be the effect on the erasure of field. Change this target of buttons to be a URL. For the URL, specify

    JavaScript:clearFields();

    Add this javascript in the page header.

    
    

    CITY

  • JavaScript to create a text field + button to open the Web page after the entry

    Hello!

    I am creating an interactive catalog for a customer. My client wishes to their viewers to be able to type a part number in the text field (green box) and when you clicked on the button 'Search' it opens a browser window and add to everything that has been entered into the text behind URL box that will.

    He will go to the search page on their Web site. The URL always starts the same:... com/Research/search_results? search = and behind the = would be what has been typed in the search box.

    Screen Shot 2015-11-11 at 1.59.50 PM.png

    On click on go to... com/Research/search_results? search = 98321


    Help, please! Thank you!

    Say that the text field is called 'SearchCode '. Use this code as your search button MouseUp action:

    var searchCode = this.getField("SearchCode").valueAsString;

    app.launchURL("...com/search/search_results?search="+searchCode);

  • How to password - protect a text field button?

    With the help of Adobe Acrobat DC.

    A final touch on page 1 is titled: "the next Page: ADMIN only '."

    How do I password protect the button at the place where rises clicks the button, a password box would jump to the top (so that the next page access is restricted to admin staff only)?

    Thanks in advance!

    Thank you ALL for you insightful wisdom and entry for this.

    And thank you, gkaiseril, for throwing in a sample script. Indeed, I'll start my great experience and see what I see.

    FYI to all: this is not a question of security sensitive or confidential, in what the admin page simply duplicate entries of students area of content on page one (so that our admin person can review the content for save/printout/distribution)...so final, even if a student somehow got around the protection of password for the hidden page template for example, no harm no fault, lol.

    Thanks again to you ALL for your wonderful help on this!

    John

  • How to reset text fields

    Hello world

    I created a password change form that contains 3 (old password, newpassword, renterpassword) text fields and buttons (change, reset) 2.

    I created a password change process which changes the password when the user click the button change.

    My question is when the user clicks the reset button it will be the clear text fields and the focus of the cursor will be old password text field.
    Please tell me how to do it.

    I use apex 4.1

    Thank you
    Kind regards
    Paul

    Published by: Dan on May 31, 2012 22:01

    Published by: Dan on May 31, 2012 22:03

    Looks like you have not found anything useful or Correct. :(

    Kind regards

  • Ghost of text for a text field with Add Action

    I have a text field with text ghost. Also, there is a button to add additional text fields. When a user clicks on the 'add an additional text field button' new text field appears but without the ghost of the original text field text. I tried the script of the click event of the button to fire or run:

    textfield.execEvent("ready:form"); or textfield.execEvent("form:ready");

    Why 2 ways? LiveCycle has two ways to present it:

    (1) on the drop-down list for events (e.g. form: ready)

    (2) on the name of the field at the top of the script after box selected event on the menu drop-down (for example textfield.ready:form: :-(Javascript, client)

    Is there a better way to do it? My concern is that if I managed to shoot the event form: ready or ready: shape the event can reset all the text from the original text of default ghost of "Kansas City Royals. Thank you

    https://workspaces.Acrobat.com/?d=w3PioRrv8DUp2ruhoOY * 8g

    Put your event form script: ready in the initialize event.

    Kyle

  • Bind a radio button to a text field in a pdf form

    Forgive my ignorance, but nobody knows how to bind a radio button to a text field in an Acrobat pdf form?

    I have a series of 4 radio buttons. If you click on one of them, I want to activate a text field then you will need to fill out. In addition, it would be good to have if you do not click on the radio button you are able to fill the text box.

    I'm a designer not a programmer, so I don't know much about javascript. Can anyone help?

    Thank you very much

    You might want to look at hiding and showing form fields by Thom Parker. You can also clear the text field when the radio button is changed.

  • Align the text field and a button.

    Hi all

    I use Oracle APEX 5.0.1.

    I tried to create a search page that contain a text field and a button.

    But I can't align the text field and button, so they can have the same top position.

    Could someone please help me solve this problem?

    APEX-ARE-Search.jpg

    Thank you and best regards,

    Troy.

    Hello.

    Have you tried to add a css attribute to the button? like: style = "top: 4px;

    Concerning

  • Fill in the text field when TWO radio button is unchecked

    Hello

    I don't know anything about javascript and need help.  I have a photography contract I want to offer a "discount package" of $50 when the two services will be used.  1 service is 'Photography coverage' and Service 2 'Photo Booth Rental'.

    Text field 1 = subtotal (calculates the values of checkbox and radio button)

    Text field 2 = discount (it's where I need help.  I would like this automatically filled with $50 when my default two boxes are not selected.  But only when the TWO are not selected)

    Text field 3 = Total (which has a basic calculation of the Subtotal-Discount)

    The services of two by default (it's done on purpose, I checked from the beginning) are both set to the '0' values to keep the subtotal $ 0.  If the client will use a service (which means one of the default selections will be selected), then there will be no discount, but if they decide to use photography and the cabin, they save $50.

    Can someone please help me to write a script for the text field, Discount calculation, to accomplish what I ask?

    Untitled-3.jpg

    You can use something like what the calculation script custom field discount:

    Event.Value = (this.getField("Service1").value == 0 | this.getField("Service2").value == 0)? 0: 50;

    Simply adjust the field names in the code to match the real in your file.

  • RADIO BUTTON BOX REQUIRE TEXT FIELD.

    I have a group of checkbox button Radio I want ONE of the check boxes, when checked, to trigger the text field and a text field to be required to not be necessary when the checkbox is disabled or disabled. How can I accomplish this?

    Figured it out!

    If (event.target.value == "Three") {}

    this.getField("Text_Field_1").required = false;

    }

  • Is it possible for someone to insert a logo when you fill out a form to fill out? I'm looking for all the options under the button 'add a text field.

    I have created a form to fill out that is a contract, but I need a way for the person who is to fill the form to insert their logo.  Is it possible for someone to insert a logo when you fill out the form to fill out? I'm looking for all the options under the button 'add a text field.

    It is not possible within a text field, either. If they have Acrobat, they can use the built-in under Tools - editing content Add Image tool.

    If they drive XI or higher, they can use a button form field you will need to set up for them, but the image must be in PDF format.

  • The button text field block clickable area

    Hello!  I'm building my first site with Muse and have created a button in Photoshop with four States that work correctly in the preview of Muse.  When I place a text label on the button in Muse, however, the text field blocks a part of the image map of the button when I preview the it.  I'd appreciate any help - thanks!

    Mylenium, thank you for your patience.  When I tried what you suggested last night it did not work for all layers (I still saw the option "Merge layers" available).  Only now to experiment more, have I realized that PS really care what order I click on both layers I want to merge.

    It was a simple fix - I hoped that someone on the Council suggests.  Your advice to watch tutorials base PS, is appreciated.  But it wasn't the right answer.

    Thanks for your time, if.

    Steve

  • Dynamic Actions disable button based on the text field

    Hello

    Sorry if this has already been asked but I checked and could not find a job.

    «I'm trying to disable / enable a button "view" among the elements of this region from if a text field has a value or.»  I created a dynamic action for this but its not working only partially.  I can get the button to be disabled or enabled when I leave the text field, but what I'm trying to do is to get the State of button to change as soon as I start to type in the text field or return to people with disabilities if the text is deleted.

    I don't know that I'm missing something simple and help you can give is greatly appreciated.

    I use APEX 4.1 and that's how I got the dynamic action implementation, I tried different but no event types to give them action I want.

    I also install an example (details below)

    Event - change

    Selection type - point

    Article (s) - P1_TEXT

    Condition - is null

    Real Action

    Action - disable

    Fires when the result of the event is - real

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    Action of false

    Action - Enable

    Fires when the result of the event is - fake

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    workspace - show_issue

    user_name - show_issue

    password - show_issue

    app_id - 61707

    http://Apex.Oracle.com/pls/Apex/f?p=61707:1

    It works as expected if you change the event of 'Change' for 'key version?

  • Then click on the button--> number increased by 1 text field

    Hello!

    I have no coding experience and want to create a game like Cookie Clicker. A game of the idle clicker.

    So I have my button and a text field that says "$ 0". How can I do, that when I click on the button the "$ 0" turns to "$ 1" and so on...?

    I use Actionscript 3 as a type of file, I hope it's okay.

    I hope someone will help me.

    Greetings!

    stir in your policy.

    p.s. I don't download and fix the files except if he is hired.  free help I offer only via the adobe forums (and this problem must be completely soluble via the forum).

Maybe you are looking for

  • Need drivers for Satellite 2430 703

    After poor performance and other problems with my laptop, I thought to update some drivers. But where are they? On the support pages Toshiba Satellite 2430 703 is not found (in 'Archives' or any other category). Apparently, it never existed. I wonder

  • Y at - it something to pass classes without causing conflicts to project?

    I am using OOP for a few months, but I was frustrated a handful of times trying to move classes. With other files, I just go in file display and click 'Move to disk', which has always worked very well. But if I try to move a folder that contains seve

  • HP TouchSmart300-1100: HP TouchSmart300-1100 - 204 or 240 pin DIMM?

    HP TouchSmart300-1100 - 204 or 240 pin DIMM?   Re: 2 GB (1 x 2 GB) DDR3 PC3-10600 Thank you

  • How can I activate the Windows Update Service?

    I had to restore my kids PC. Windows Update gives me a message that it is not running and I need to restart the PC. I've done several times, and Windows update still does not work. I passed through TaskManager, Services and found Windows Update and t

  • Help on CSPM

    Hi Netpros, I have CSPM 2.3.3i installed with 8 boxes of monitored IDS. The administrator who can manage the CSPM has left the company. I don't know what is the password for the CSPM server management. Is there a procedure to break the password or is