|
|
|
#1 |
|
flash animator guy
Join Date: Oct 2006
Location: Daly City
Posts: 213
|
[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 |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|