myMC.onRollOver = function(){
var newColor2=“0x000000”;
myColor = new Color(myMC.output);
myColor.setRGB(newColor2);
}
on myMC movieclip contains a textfield output…
is this the correct way to change the colour for the text?
is there a way to change the background color of a textfield without borders?
thanks
you use the textColor property of the TextField.
myMC.onRollOver = function() {
this.myTextField.textColor = 0x000000;
};
=)
hmmz am i rite to say that this onRollOver function shld appear before attachMovie code? so that the movie have this function?
you can use the method that senocular explained to you…
changeTextColor = function () {
this.myTextField.textColor = 0x000000;
};
myMovieClip.attachMovie("myLibraryClip", clipA, 1, {onRollOver:changeTextColor});

hmmz… okok i will try again… how abt changing the background colour of a textfield?
also for the rollOver function codes… the “this” refers to myMovieClip or the movieclip that i am attaching to?
this refers to the object that is calling the function. in the script above, it’s the same than clipA.myTextField.
and to change the background use the backgroundColor property.
check the actionscript dictionary… everything is there. :-\