Can't change text on button

i am trying to develop a flash site where people can choose from a list of “skins” and when they do, the site color changes

i have a button with the instance name “home”. In the “Over” keyframe of this button i have a text box with the instance name of “overText”.

for the life of me, i can’t change the text color

i have used the following code

// set the color
blue = 0x0000FF;

//set object and attibute
menuTextStyle = new TextFormat ();
menuTextStyle.color = blue;

//apply to the text field
_root.home.overText.setTextFormat (menuTextStyle);

i have also tried using _root.overText; home.overText at the start of the text field path but these have’t worked either

can someone help?

use a movie clip as button instead of a button =)

i’m quite new to flash, could you give me an example of how that might work for my particular problem

thanks

well … i don’t know why need to change the format so maybe this is not what you wanted … :-\

anyway … there are two movie clips in the file

in one of the movie clips the script sets the text format automatically

in the other one the format changes onRollOver and onRollOut handlers

hope it helps =)

thanks for the help kax

i have ended up creating a text field that sits below an invisible button - the button changes the text on rollout , rollover and also does all the on (release) things i originally had programmed

it may not be elegant but hey…
=)

ok … glad you worked it out =)