3 Replies Latest reply on Jul 22, 2010 3:40 AM by Paul_Kuhn

    Flex 4 Spark Textarea without border

    Paul_Kuhn Level 1



      I have a s:TextArea in Flex 4.1 where I am trying to hide the border. Without success.


      I thought this would do it:




      but the border is still there, also I cannot change the font color.


      How would I do that?




        • 1. Re: Flex 4 Spark Textarea without border
          Flex harUI Adobe Employee

          Did you get a warning about the borderVisible?  It might not work in the

          theme you are using and you'll need to create a custom skin.


          The color style should change the font color.



          1 person found this helpful
          • 2. Re: Flex 4 Spark Textarea without border
            Peter deHaan Level 4

            This works for me in Flex 4.1 and the latest internal builds:


            <?xml version="1.0" encoding="utf-8"?>
            <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
                    <s:VerticalLayout paddingLeft="20" paddingTop="20" />
                    <s:CheckBox id="ch" label="borderVisible" selected="false" change="ta.setStyle('borderVisible', ch.selected);" />
                    <s:Label id="sdkVer" fontWeight="bold" initialize="sdkVer.text = mx_internal::VERSION;" />
                    <s:Label text="{Capabilities.version}" />
                <s:TextArea id="ta"
                            text="The quick brown fox jumps over the lazy cat."

            • 3. Re: Flex 4 Spark Textarea without border
              Paul_Kuhn Level 1

              Thanks to all for the answers. Yes it works fine and the border is not displayed!


              I had a default CSS with a skinClass to a TextAreaSkin which included a border... This was my mistake here.


              Thanks again!