Do you have to inherit UIComponent ?. See I thought by inheriting SkinSprite, something that can have children and implements Flex style interface, IE setStyle()
Mike
On 2/2/06, Teoti Graphix <[EMAIL PROTECTED]> wrote:
I'm glad you wrote that script, it is what I am using. In SkinSprite.
For me it dosn't work, I will try again and post code if it still dosn't work.
Thanks, MikeOn 2/2/06, Manish Jethani < [EMAIL PROTECTED]> wrote: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
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

