PDA

View Full Version : Changing textFont in Combo Box


kethrobo
10-31-2004, 05:59 PM
I have a Combo Box and I want to use Maestro Font for the labels(This gives music notation.)
I have named instance COMBO1.
I have new layer and in frame put:-
COMBO1.setStyleProperty("textFont",Maestro);
setStyleProperty.applyChanges();

but it doesnot change the font.
I have also tried:-

globalStyleFormat.textFont="Maestro";
globalStyleFormat.applyChanges();

and that doesn't work either!

Any ideas would be most appreciated.
KethRobo

mmm..pi..3.14..
10-31-2004, 06:33 PM
see the last post...

http://www.actionscript.org/forums/showthread.php3?t=43874

Eric :)

kethrobo
10-31-2004, 07:07 PM
Thanks Eric I'll give it a try .
Kethrobo

kethrobo
10-31-2004, 07:40 PM
Eric, I've tried the script but it still hasnot changed the font.Yours Kethrobo

mmm..pi..3.14..
10-31-2004, 07:53 PM
Well, I am using Flash MX 2004 Pro so it might be different but look at these pics, did you do it exactly like this?? The combobox component has the instance name "comboBox"

Eric :)

kethrobo
11-01-2004, 08:02 AM
Dear Eric,
I most be doing something wrong because it still doesn't work for me. Attached are two photos of what I've done. Keith