I have a text file that set’s some color values I would like to use in my flash movie. bascially its a config file for movieclips rollovers(set’s the colors)
my textfile reads as follow
textOut=0x3F6075&baseOut=0xFFFFFF&outLineOut=0xE19C14
My Flash is as follows:
/* loadconfig file */
myTest = new LoadVars();
myTest.load("button_styles.txt");
myTest.onLoad = function(){
trace(this.textOut + newline + this.baseOut + newline + this.outLineOut);
}
/* function that actually changes the colors */
function insideElement(){
myOutline.setRGB(this.outLineOut);
myText.setRGB(this.textOut);
myBase.setRGB(this.baseOut);
}
Now when I trace the values its fine, but when i apply them to my movieclips, it turns black :hr:
any ideas? thanks
edit: of course i am calling the function, figured you would assume so,