On 2/2/06, Teoti Graphix <[EMAIL PROTECTED]> wrote:
> I want to create a border class that creates a Label(UITextFiled), and > positions the label. Now, I know I can't use RectBorder because it is not a > DisplayObjectContainer, so it cannot have children. I see skin sprite is, so > that is what I was using. > > So I create a border and label in this border component(skin), everything > works fine but, the label(UITextField) will not take on any styles. The only > way to change the styles are to get a TextFormat and setTextFormat() which I > don't want to do. You can simply set the UITextField's "styleName" to the parent component. labelField = new UITextField(); labelField.styleName = this; addChild(labelField); The styleName setter will take care of setting the TextFormat internally. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

