2 Replies Latest reply on Jun 11, 2010 1:32 PM by luisborlido

    SkinnableContainer Focus

    luisborlido Level 1

      Hi! I'm trying to do an IP address TextInput like those in Windows where the user only needs to insert the numbers. For that I did the following code:

       

      <s:SkinnableContainer ...>

       

          /*...*/   
         
          <!-- UI components ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
          <s:TextInput skinClass="skins.IPFieldSkin"/>
         
          <s:Label text="."/>
         
          <s:TextInput skinClass="skins.IPFieldSkin"/>
         
          <s:Label text="."/>
         
          <s:TextInput skinClass="skins.IPFieldSkin"/>
         
          <s:Label text="."/>
         
          <s:TextInput skinClass="skins.IPFieldSkin"/>   
      </s:SkinnableContainer>

       

      But now, when the user clicks on the component, I want the focus rect to be presented.

       

      There is a way to do this or do you have another sugestions? Thanks in adavnce.