Automatically highlight text in a text field using a button?

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Automatically highlight text in a text field using a button?

    Is there anyway of automatically highlighting (select) all the text in a particular text field, say when pressing a button?

    If anyone can help?


    FlashAsh99 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. #38805 [NEW]: PDO Truncates Text from SQL Server Text Data Type Field
      From: gkrajci at arescorporation dot com Operating system: Windows NT PBMA-WB2 5.2 build 37 PHP version: 5.1.6 PHP Bug Type: ...
    2. Radio btn makes text field equal value of different text field
      What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The...
    3. text field including text from a text file *.txt
      Hi, I would like to insert a text field which includes text from a text file. I know it must be possible but unfortunately I cannot find any help...
    4. Make a button load text into a scrolling text field?
      Hello I've got a problem here and I hope some friendly soul out there would spare a minute to help me out... I'm creating a rather simple site...
    5. Content from a memo field: converting the rich text into plain text
      Hi folks, I have an Access 2000 db with a memo field. Into the memo field I put text with bold attributes, URL etc etc What I need to to is...
  3. #2

    Default Re: Automatically highlight text in a text field using a button?

    With a textfield called test.

    Selection.setFocus("_root.test");
    Selection.setSelection(0, _root.test.text.length);

    this selects all the text in that textfield. You'll find more info by looking up the Selection feature in the AS Ref.

    Cheers

    check out the STC fontBrowser

    STC Associates

    jerome@STC webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Automatically highlight text in a text field using a button?

    Thanks alot!!!


    FlashAsh99 webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139