solved. But I can't tell you why, it just works now. Seems that sleeping made the AS compiler reconsider my instructions ;-)
On 6/8/06, Stefan Thurnherr <[EMAIL PROTECTED]> wrote:
Hi all, For an application that I am developing I have subclassed those UI components that I'll most commonly use (Label, Button, TextInput, CheckBox, RadioButton). Among other things I'd like to be able to set the fontSize/fontFamily/fontWeight in a single place, and I chose for this the init() method of the component subclasses (LernLabel, LernButton, LernTextInput, LernCheckBox, LernRadioButton) [1]. While I have no problem setting the fontFamily and fontWeight properties for all my subclassed components, I experience some difficulties with the fontSize property: I could set the fontSize for LernButton, LernRadioButton and LernCheckBox, but I had no success in doing the same for LernLabel and LernTextInput. I tried both this.setStyle("fontSize", 18) and this.fontSize = 18 (both of them in the subclasses init() method and also in the onLoad() method), none of them succeeded. The only "lead" that I have is that I found out that when resizing a TextInput/Label, the font gets adjusted automatically. Does that mean that one cannot set the fontSize explicitely for TextInput and Label components (or their subclasses)? I couldn't find anything helpful on google, so I am posting on this mailing list. Any help appreciated! Thanks, stefan. [1]: Is that the right place to do the "styling" of my component subclasses? Or should it be done in the createChildren() or onLoad() method ?
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com