I need help, I got this code from Kax. This allows me to change colour of my background. This use to work on my movie but now is just not working anymore!
Since i created a button loading a .swf file this has stopped working, Any suggestions anyone?
Code is below
on (release) {
MovieClip.prototype.fadeColor = function(cto, e) {
var myColor = new Color(this), cColor = myColor.getTransform();
this.onEnterFrame = function() {
for (var c in cColor) {
cColor[c] += (cto[c]-cColor[c])/e;
}
myColor.setTransform(cColor);
};
};
myMovieClip.fadeColor({rb:204, gb:0, bb:0, ab:255}, 4);
}
I understand that I have to replace “myMovieClip” with the name of my clip!
I think it has something to do with the [COLOR=BLUE]this[/COLOR]. Try replacing it with _parent. I can’t test this 'cause I ain’t got flash on this pc but anyway. It’s worth a try.
Can you upload to a server and put up a link? I don’t accept attachments in my e-mail so if that’s the only method you can do this, then perhaps one of the other folks here could help you out.