Posts tagged as 'Skins'

Accessing the component instance from a Flex skin

If you need to access the Flex component that a skin belongs to, you need to know that the skin’s parent is the component that you’re skinning. So you can access properties of the component through the skin’s parent (N.B. Don’t do this in the constructor – the skin isn’t added to the component’s display list until after the constructor has...

Using TextFields and Bitmaps in a programmatic skin

There’s not a lot written about using text fields (or any other display object) in a programmatic skin. What there is often suggests you have to add the text field as a child of the skin’s parent. But it’s actually a lot simpler than that…