TextInput changes to the text during the click on

Hi all.

I have a text entry that contains the text 'name '.  What I want to do, is when it is clicked it gets rid of this text.  I can do it this way

< s:TextInput x = "10" y = "291" width = "265" textDecoration = "none" text = "Name" id = "txt_name" click = "" txt_name.text = "" fontStyle = "italic" / > "

Simply change the text value to "" on the click attribute.

However, this causes problems because if you click it once that he get rid of 'Name' and you type in something, if you clicked on it again, it would be to get rid of what you typed in.

If I'm on this simple function

protected function commentnametext (): void
{
If (txt_name2.text is "Name")
{
txt_name2. Text == ";
}
on the other
{ }
}

< s:TextInput x = "10" y = "321" width = "265" textDecoration = "none" text = "Name" id = "txt_name2" click = "commentnametext ()" fontStyle = "italic" / > "

However, when I click on the textarea component it dosent seem to run the function, changing text dosent.  No idea why its not working?

Your function is false

protected function commentnametext (): void
{
If (txt_name2.text is "Name")
{
                  txt_name2.text == ";  -You must write here txt_name2.text = "; instead of 2 == writing only 1 =
}
on the other
{ }
}

If this post answers your question or assistance, please mark it as such.

Tags: Flex

Similar Questions

  • Changes of text during the interpolation

    I have a text bar with five words and subjects in it. Every Word changes color as the topic changes in the presentation. I checked to make sure that the x axis are whole and are the same at the beginning and at the end of the Tween. During the interpolation, the Word moves up and to the right a bit, but ends by in the right place. It is noticeable in playback. I saw another post in the forum about offset of text, but it is linked to the text that moves from one place to the other. My text remains in the same place, so the x, y values do not change. I also made sure the W H values are identical. Any help will be appreciated.

    Thank you, Shan-Dysigns for letting me know I should create a new post.

    To clarify things, I mean your 'transform' registration centres. When you click on a symbol, press 'q', you go in free transform mode. Make sure this white point is in the same position of the symbol in each keyframe.

  • The text changes take place after that I click on a tab.

    I have XP and after I updated Firefox to the more recent whenever I click on a different tab of the text above and the small icon to change the location, not much just a little but it's really annoying. I had no such problem with the previous, and it seems rather unusual.

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot.

    Start Firefox in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • on change of value event I'm shooting adf Faces error message but its getting recorded during the click on save

    Hi Experts,

    JDEV 11.1.1.7.0

    On valueChangeEvent I throw adfFacesErrorMessage but its economy during the click on save.

    Because I can't do validation in my OE. So I can use validator instead of valuechange evnt. ? While it will not allow something to save.

    autoSubmit = "true" validator = "#{backingBeanScope.myBean.checkValidation}" >

    On valueChangeEvent I throw adfFacesErrorMessage but its economy during the click on save.

    Message is just to what is expected.

    So can I use instead of evnt valuechange validator.

    Yes, you must use the validator to implement validation

    Dario

  • Outlook does not not the clicks of the mouse during playback, moving emails

    Original title: My Outlook has just started to ignore my clicks for a long time, and then it takes a minute or more to have a completed shipment.

    Outlook does not respond to my mouse for long periods, taking ages to read an e-mail and send an email, there is something very bad, he has never done this before, she ignores my click to read and send or move emails from Inbox to project etc.

    Power of Nev

    Hey Neville,.

    It would help if you could answer these questions in order to solve this problem.

    1. are you referring to Outlook express which is integrated in Windows XP or another version of the Microsoft Office product?

    2. you remember for changes of the Ant to the computer before this problem? Were that Windows updates have been installed lately?

    If you use Outlook Express , and it continues to answer during sending, by reading or by moving e-mail messages, and then follow the suggestion of http://support.microsoft.com/kb/898122

    Also try to repair it and check http://support.microsoft.com/kb/2398839

    If you use a different version of Microsoft Outlook, then please post your question in http://answers.microsoft.com/en-us/office/forum

    Hope this information is useful. If you have any questions, please let us know.

  • Can change us static text to the interactive course?

    Hi Experts,

    Is it still to change static text to the interactive course?. During the execution of my lot my display is as follows,

    From.jpg

    I want to change that during the lanterns as follows,

    To.jpg

    Can this be possible to change/add static text to the interactive courses, if so please suggest me the approach to achieve this.


    Note: I want to change the static contents of the static form.

    Thank you

    Raman C.

    Hello

    Exit 12.1, the 'Interactive edition' parameter has been added to text box objects.

    When this option is enabled, you can change the text in interactive or data entry failure Studio box

  • Once I do a text comment and click outside the comment, my comment fades lighter than the color of multiple shades, in which it was typed. Someone knows how to fix this?

    Once I do a text comment and click outside the comment, my comment fades lighter than the color of multiple shades, in which it was typed. Someone knows how to fix this?

    Maybe the opacity for the comments of text setting is set to a value lower than 100%... The problem is that there is no way to change it except by using a script.

    Here's how you can do it. After you have created your comment, click on it with the mouse and press Ctrl + J to open the JS Console window.

    In the lower part of the window clear the text that is there and enter this instead and then press Ctrl + Enter:

    this.selectedAnnots [0] .opacity = 1;

    This should change the level of opacity for the comment selected 100%.

    If it works then right click on the comment, go to properties and then click on the 'Make default properties' box and click OK.

    It should now be fixed for any comment that you create.

  • To work with the text to the assignment by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not start to rise upward, as happens in other browsers. I ask you for

    After the transition to Windows 7, there was a problem with Firefox. To work with the text to the award by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not ascend to the top as it was earlier, and like that occurs in other browsers. It is necessary to press the other key "down" which is him very troublesome. Resettlement on an earlier version (8.0) earlier irreproachably working, gave nothing. I ask you to help

    You must activate the module bar (Firefox > Options or view > toolbars;) CTRL + /) or find bar to make Firefox scroll the page while selecting the text (Ctrl + F).

  • 2 questions - run as administriator &amp; change in the size of the text

    Hi all!

    I've developed software with CVI, could you please answer 2 questions?

    1. when I install on other computers, the text messages different looks (the police expanded) and in my computer, it seems. I think that happens when you choose to change the text size in windows thorugh: Panel-> apperance and customizations-> medium(125%)/large(150%) instead of hail (default 100%). Prevent the change in the size of the text in the panels?

    2. on other computers the software could not create a file for writing, unless a throw with the option "Run as administriator". Why?

    I hope you understood my questions, thank you!

    Depending on the size of the text is concerned, if you do not use one of the metafonts predefined for your labels and the text of the control, you shouldn't have this problem. The metafonts are designed to take on the characteristics (in size and style), the default settings of the computer where you run your program. Furthermore, by default, all new controls that you create using one of these metafonts, specifically NIDialogMetaFont, which is an alias for a variable size font which can become more or less important depending on the settings of the computer.

    To avoid this, you can change melting completely to something else (Arial, etc.), or you can even keep the same font, but make sure that you choose a different size that will result by it is not not the metafont predefined. For example, in my computer, if I use the point size 11, I use the metafont. But if I change the size of point to something else, then I don't want to, and that its size in points then remains the same in any computer.

    Size 11 (metafont):

    Size 12 (no metafont):

  • The screen of my Hotmail has changed. The box of Firefox at the top has disappeared. It has nothling I can click to get back to my desktop screen.

    The screen of my Hotmail has changed. The box of Firefox at the top left is gone. I don't see anything that I can click out of Hotmail and return to my office.

    Hello

    You are able to use Hotmail without any problem on Internet Explorer?

    You will need to contact Hotmail support team or firefox support team for assistance on this. Usually, you get a disconnection of the option on the upper right of the browser window to sign out of Hotmail.

  • "Change only the size of the text" greyed out

    I want to change the size of the text only in windows 8. When I go to control panel/display option 'Change only the size of the text' dialog boxes are grayed out.  Can someone tell me how to solve this problem?

    Hello

    You can see this thread dealing with the same type of problem:

    Change the size of the text only does not work

    Note:

    After my research I find that if we choose smaller screen, which is the default (100%) under change the size of all the elements , then the options for "Change only the size of the text" is not grayed out, if we select medium or large, then the option is grayed out.

    Check if you are using the smaller screen under change the size of all the items and then try to change the "Only change the size of the text".

    You may also refer to this article to check if it helps:

    Make the text on the screen larger or smaller

    Please let us know if you have any concerns about Windows.

  • This failure has occurred: {0}. your changes have not been saved. Click OK to return to the list page.

    Nothing has changed on the device as so far, I am aware, but lately when I click on group under Default Device Admin map, I get this error and I can't make changes:

    This failure has occurred: {0}. your changes have not been saved. Click OK to return to the list page.

    Version of the ACS:

    Cisco ACS VERSION INFORMATION

    -----------------------------

    Version: 5.8.0.32

    The identifier for the internal version: B.442

    This error does not appear to be related to

    CSCud78248    Failure of system ACS 5.4 administrative access control

    as I have no identity configured for the RADIUS server. I use this unit for RADIUS authentication. Any help is very appreciated!

    What browser and version are you using?

    If it of firefox and automatically has ugraded to the latest version of FF 46; There is a patch being released today and which will focus on similar issues seen when using the FF 46 version

    Will be 5.8 patch3. a rollup that includes all the fixes in previous patches (1 and 2) posted release ACS 5.8

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • List drop-down selection trigger change in the text field

    I'm hit a roadblock here. I'm on Adobe Acrobat XI and here's the scenario: I have a list box and a text box.

    Drop-down menu field has 3 caps (A, B, C).

    If A is selected, the text box = 15 default, but has the ability to change in the text box.

    If B or C is selected, the text box = 0 or "by default, but it has the ability to change in the text box.

    If I use an if/then with a .value, I'll be able to get the numbers to work, but do not have the ability to edit and keep them there. If I enter another number in another area, the JavaScript code will run and change the text box to 0 or 15.

    Any help would be greatly appreciated.

    Thank you

    Instead to use script logic for the text field, use the drop-down validation script. In this way, that it only will be triggered when you change the value in the drop-down list field, not when you change any field in the file (as the calculation script).

  • Best workflow for the customer who wants to make changes of long text in Word

    Maybe this isn't a question of InDesign itself, but I thought you'd be able to help me. I work with a client who is happier typing in Microsoft Word (Windows). I get his text as a Word document, I create the pages with InDesign, send them to PDF and then makes a change of text in the Word document and sent me the new file.

    What is the best way for me to catch all the changes and bring them into InDesign properly?

    Hello

    -You can select a preference (which is disabled by default) that placed treaty text as link-, so that when the link is updated (IE your client makes changes to the word document), the link can be updated in Indesign.

    However, if you change the text at the same time, your changes will be overwritten by the new incoming word document.

    You can also watch it in a product called WordsFlow by Em Software...

    Kind regards

    Malcolm

Maybe you are looking for

  • How to get 2 albums to be instead of a single disk drive

    Sometimes when two importers disc CD (such as Hamilton) I tunes creates two distinct albums instead of one.  How to combine a continuous reading of album.  Otherwise, I have to create a playlist.

  • S50 satellite - C - printing problem

    5 month old Toshiba Satellite S50 - C seriesWindows 10 - 64 bit Problem:Two people

  • SL400 gone yet?

    AGAIN, the SL400 has disappeared. What is originally the SL300 to disappear and the SL400 to suffer the same fate?

  • Grids in forms

    Support team, I'm still learning CSP and did not have the joy of any training yet, but I have a question about the right way to do forms of grid components. Currently, I have a form to trigger a change to a physical server. The server information is

  • New WMP won't apply media information changes

    New Win 7 PC with WMP preinstalled with the operating system. It is not picking up a lot of files so I try under organize > apply media information changes (after appropriate libraries to manage information).  I tried this several times now after res