6 Replies Latest reply on Mar 4, 2010 10:53 PM by franto kormanak


    franto kormanak

      focusSkinExclusions doesnt work for me in latest build (in Beta it worked). Is there any changed Im not aware of from Beta 2?

        • 1. Re: focusSkinExclusions
          Peter deHaan Level 4



          Can you post a simple example here and/or file a bug and we can take a look.




          • 2. Re: focusSkinExclusions
            franto kormanak Level 1

            problem was that I needed to remove focus skin from some custom component (which extends TextInput), I've added all subcomponetns into focusSkinExclusions, but focus skin was still there. But then I've found out focusThickness, and I've set it to 0, so it solved my problem.



            THis is skin which works in Beta2, but didnt work in latest build


            <?xml version="1.0" encoding="utf-8"?>
            <s:SparkSkin xmlns:s="library://ns.adobe.com/flex/spark" 
                      <s:SolidColorStroke id="cursor" color="0xb9b9b9" weight="1"/>     
                      <s:State name="normal"/>
                      <s:State name="rollover"/>
                      <s:State name="bordered"/>
                      <s:State name="userText"/>
                      <s:State name="userTextRollover"/>
                      <s:State name="userTextBordered"/>
                      <s:State name="disabled"/>
                 <!-- STROKE -->
                 <!--s:BitmapImage id="stroke" source="@Embed('/assets/textInputOuterStroke.png')" x="0" y="0" excludeFrom="[normal, userText]"/-->
                 <s:Rect id="bkg" left="1" top="1" right="1" bottom="1" excludeFrom="[normal, userText]">
                           <s:SolidColor color="0xffffff"/>
                 <s:Rect id="stroke" left="0" right="0" top="0" bottom="0" includeIn="[rollover, userTextRollover]">
                           <s:SolidColorStroke color="0xe9e9e9" weight="1"/>
                 <s:Rect id="stroke2" left="0" right="0" top="0" bottom="0" includeIn="[bordered, userTextBordered]">
                           <s:SolidColorStroke color="0xd0d0d0" weight="1"/>
                 <!--s:Line left="5" top="2" height="27" stroke="{cursor}" includeIn="[normal, rollover]"/-->
                 <s:RichEditableText id="textDisplay" 
                                          left="6" right="1" top="4" bottom="1"
                           override public function get focusSkinExclusions():Array { 
                                return [ textDisplay,stroke,stroke2, bkg ];



            hope this helps

            • 3. Re: focusSkinExclusions
              Peter deHaan Level 4



              What about if you change your code to this (seemed to work for me in SDK):

                          override public function get focusSkinExclusions():Array {
                              return ["textDisplay", "stroke", "stroke2", "bkg"];




              1 person found this helpful
              • 4. Re: focusSkinExclusions
                franto kormanak Level 1

                Thanks Peter it works


                It seems it was change in some SDK after Beta2. Or at least support for instances (not instance names) was removed.

                • 5. Re: focusSkinExclusions
                  Peter deHaan Level 4

                  There have been oodles of changes since Beta2. I'd recommend moving to the latest nightly 4.0 builds as soon as possible if you havent already.




                  • 6. Re: focusSkinExclusions
                    franto kormanak Level 1

                    sure, I've change, not latest, but 14403 for now I cant update it daily, but it's much better now...