To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-13-2007, 08:45 PM   #1
belotte
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
belotte is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:16 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.