List Info

Thread: How to set FONT-style in TextInput / MX 2004




How to set FONT-style in TextInput / MX 2004
user name
2006-02-24 11:26:15
Hello Lingo-folks,


when I use a TextInput-component (Flash-component) and I
want to set the 
font used in this component, how can I do it?

When trying

sprite("MyTextInput").setStyle("fontFamily
", "Arial")

I only get told that "setStyle" is not a
property of that sprite. The 
same result I get with the following version I also have
tried:

sprite("MyTextInput").text.setStyle("fontF
amily", "Arial")
sprite("MyTextInput").member.setStyle("fon
tFamily", "Arial")
sprite("MyTextInput").member.text.setStyle(&quo
t;fontFamily", "Arial")

The Dox simply say "use the Style...", the web
only tells me to apply 
"setStyle" on the sprite-ref...

So, how do you set the font used in your textInputs?


Best regards,
Roman.

-- 

------------------------------------------------------------
-------
 gosub communications gmbh | fredersdorfer str. 10  | 10243
berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.de
------------------------------------------------------------
-------

_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )