1 Reply Latest reply on Aug 18, 2009 1:48 PM by rfrishbe

    hostComponent in mx:LinkButton skin?

    flairjax Level 1

      Is it possible to get to the component from within the skin? I know spark has hostComponent, but I am using an mx:LinkBar and have a custom LinkButton skin and in the LinkButton skin I need to get access to the LinkButton as I want to draw a background in the LinkButton that is only as long as the text in the LinkButton, plus one or two pixels more ( 1px + text.length + 1px).

       

      I followed this example as my starting point:  http://blog.flexexamples.com/2009/08/13/creating-a-custom-link-button-skin-on-the-halo-lin kbar-control-in-flex-4/

       

      J