7 Replies Latest reply on May 5, 2006 9:48 AM by D_Hansen

    Highlights on Dynamic Text Fields

    THE DVH
      Does anyone know how to get rid of or hide the bright green highlights on selected input text fields?
      When you tab through the various fields whichever one you're on has the highlight, and it really doesn't work with the design for the site I'm working on.
      Even if anyone knows if you can somehow just adjust the color of the highlights that would be helpful.
      Thanks!
        • 1. Re: Highlights on Dynamic Text Fields
          XmenFlash
          set the textinstance.tabenabled property to false.
          • 2. Re: Highlights on Dynamic Text Fields
            Level 7
            THE DVH wrote:
            > Does anyone know how to get rid of or hide the bright green highlights on
            > selected input text fields?
            > When you tab through the various fields whichever one you're on has the
            > highlight, and it really doesn't work with the design for the site I'm working
            > on.

            >

            do I take you mean the TextInput component rather than the input
            textfield? The input textfield shouldn't have a green focus rectangle
            around it - it doesn't get any sort of focus rectangle.

            The TextInput component will though as all Macromedia components seem to
            inherit that green highlighting feature.

            according to the flash help:
            You can change the color of the focus ring in the Halo theme by changing
            the value of the themeColor style, as in this example:
            _global.style.setStyle("themeColor", "haloBlue");

            if you dig around a bit more you can probably find something more
            helpful.. or possibly not. which is why I don't use the macromedia
            components!
            --
            MOLOKO
            Macromedia Certified Flash MX 2004 Developer
            Macromedia Certified Flash MX Developer
            ------------------------------------------------
            ::remove _underwear_ to reply::
            'There ain't no devil - it's just God when he's drunk' Tom Waits
            ------------------------------------------------
            GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+ w+++$ !O M+
            VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e h-- r+ y++
            • 3. Re: Highlights on Dynamic Text Fields
              THE DVH Level 1
              Yes, that does take away the highlight, but it also stops me from being able to tab through the various fields, which I need to be able to do.
              Any ideas on how to have tabEnabled=true and also hide highlights?
              • 4. Re: Highlights on Dynamic Text Fields
                THE DVH Level 1
                Actually, if I set only the first fields tabEnabled property to false, I can then tab through the other fields, yet they still have the green outline.
                And obivously, if I set the other fields tabEnabled property to false, I won't be able to tab through them.
                • 5. Re: Highlights on Dynamic Text Fields
                  D_Hansen
                  To remove use:

                  mx.skins.halo.FocusRect.prototype.setSize = function() {
                  this._visible = false;
                  };

                  To change the colour:

                  _global.style.setStyle("themeColor", 0x000000);

                  where 0x000000 is the hex value for whatever colour you want
                  • 6. Re: Highlights on Dynamic Text Fields
                    THE DVH Level 1
                    MOLOKO
                    That seemed to work to change the color
                    Thanks a lot
                    • 7. Re: Highlights on Dynamic Text Fields
                      D_Hansen Level 1
                      also if you want to do it on a per instance basis you can use:

                      myTextBox_txt.drawFocus = false;