|
-
[F8] Changing colors
Hello there. I have a script that changes the x and y scale with a slow animated defect of a MC as you roll over it. I would also like to have it change color as well, but I'm not sure how to do that. Can any one help out.
My script is as follows:
function NTD(myTarget, xScale, yScale,) {
myTarget.onEnterFrame = function() {
intX = myTarget._xscale;
intY = myTarget._yscale;
newX = xScale;
newY = yScale;
newSizeX = intX+((newX-intX)/2);
newSizeY = intY+((newY-intY)/2);
myTarget._xscale = newSizeX;
myTarget._yscale = newSizeY;
}
}
_root.home.onRollOver = function() {
_root.home.swapDepths(9999);
NTD(_root.home, 170, 170);
Thanks
RSB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|