Changing text size

Aiight, I have a box that when rolled over, I want some text over to the left to increase. Say I have a dynamic text that says “computers”. Now when you roll over that box, I want “computers” to increase to size 28. How would I do that?

on (rollOver){
_root.computers.textsize = 28;
}

it would be something like this, if only textsize was an option.
Thanks

ok. i looked in the AS Dictionary and there isnt anything that i saw to do this. So all i can say is, make an MC with 2 frames, the normal text size frame and the smaller text size frame. have a stop(); function in the first frame too. Then on the button have it play the mc.

that should do the trick…

HAHAH! i found it! i had to really search though, here:

TextFormat.size

Availability

Flash Player 6.

Usage

TextFormat.size
Description

Property; the point size of text in this text format. The default value is null, which indicates that the property is undefined.

thats what macromedia gave me! :stuck_out_tongue:

Hey mdipi,

You can’t use TextFormat.size without setting up a new TextFormat object, so it should look like:

linkFormat = new TextFormat();
linkFormat.size = 28
my_txt.setTextFormat(linkFormat);

Tell me how it goes,

yours,
h88

Thanks for you help. That did the trick.

And thanks fellas for looking into it so much, I really appreciate it.

Oh well, which vesion of flash ur using. :-\

MX Should work, 5 not supported.

WHAT? YOU EDITED UR POST? HMM, no problem though. :sleep:

:stuck_out_tongue: :stuck_out_tongue: Xbox Guru, I like that… :stuck_out_tongue: :stuck_out_tongue:

thanks pom, i am going to paint my contollers and junk soon :P. i just need to find some good paint. I was going to do the whole XBOX itself, but i dont want to void the warnenty, lol.