hi roman,
I have no problems here using
sprite(1).setStyle("fontFamily",
"Arial")
so maybe your spriteRef is incorrect?
to check it you can add your spriteRef to the object
inspector and see
if it has a "objectList" node that contains a
setStyle function.
cheers,
valentin
Roman Blöth wrote:
> 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.
_______________________________________________
dirGames-L mailing list - dirGames-L nuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
|