
Welcome Guest
|
#1
|
||||
|
||||
|
setting styles for buttons
i am using the component buttons in form i cant seem to set the text format.
Actionscript:
_global.styles.Button.setStyle("fontSize", 7);
_global.styles.Button.setStyle("fontfamily", "Arial");Does nothing
__________________
.:To me AS is like LEGO, Only for the big Kids :. - Site - Blog - Glasgow Flasher - Activeden - bringmadeleinehome.com |
|
#2
|
||||
|
||||
|
Hi
you have to declare the CSSStyleDeclaration.. bla bla before. if not it's undefined .. Actionscript:
if (_global.styles.Button == undefined) {
_global.styles.Button = new mx.styles.CSSStyleDeclaration();
}
_global.styles.Button.setStyle("fontSize", 7);
_global.styles.Button.setStyle("fontFamily", "Arial");r.fish |
|
#3
|
||||
|
||||
|
And here are some links on it:
Setting styles for a component class Setting custom styles for groups of components
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius Blog | Shared Items |
|
#4
|
||||
|
||||
|
THank you &
Thank you
__________________
.:To me AS is like LEGO, Only for the big Kids :. - Site - Blog - Glasgow Flasher - Activeden - bringmadeleinehome.com |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting up shared connection. | [PAUL FERRIE] | Members Cafe |
8 | 06-14-2006 11:25 AM |
| Styles in Flash? | lorenelks | Flash MX 2004 |
2 | 06-02-2006 01:58 PM |
| Setting DataGrid header styles using CSSStyleDeclaration | Scottae | Actionscript 2.0 Components |
2 | 06-03-2005 05:38 PM |
| problems setting text field focus | thegamemaker | General Flash | 2 | 01-08-2005 02:41 PM |
| setting _y value with a variable | ump3 | Flash MX ActionScript |
1 | 07-07-2003 04:40 AM |





