Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Motion Tween Color by ActionScript

Status
Not open for further replies.

blacktorncoat

Programmer
Dec 2, 2004
32
IL
Hi,

I have 6 buttons that besides doing their original purpose,
I want them to cause a certain movie clip to change it's color gradualy over a number of frames..
The problem is, that I can't do a regular tween, cause i don't know the color of the frame at the moment I am pressing the button.. I need somehow to define a function for this in ActionScript.. but how?

Any ideas?

Thanks,
Y.
 
Just to add a little remark -

I tried this method :
I created 2 instances of the movie clip, one "clip_start" and the 2nd "clip_end", and put a motion tween between them for 10 frames..
Then, using ActionScript code, I changed both of these instances' color using Color.setRGB method..
but doing this cancels the tween..


Y.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top