Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-13-2005, 08:42 AM   #1
TimDiacon
Registered User
 
Join Date: Jan 2004
Posts: 50
Default tween tint using actionscript

Hello,

Just wondering if anyone has worked out a way of tweening a movieclips colour by using actionscript to control the tint value. I want for example to make an object go from blue to green over a number of frames however might then want to make it red or yellow so don't want to do this using timeline based animation.

Any ideas?
TimDiacon is offline   Reply With Quote
Old 06-13-2005, 08:52 AM   #2
Taff
Old git!
 
Join Date: Dec 2004
Posts: 406
Default

Use Color.setTransform()

?
Taff is offline   Reply With Quote
Old 06-13-2005, 09:04 AM   #3
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

see:
http://proto.layer51.com/d.aspx?f=601
__________________
(6)
senocular is offline   Reply With Quote
Old 06-13-2005, 09:12 AM   #4
TimDiacon
Registered User
 
Join Date: Jan 2004
Posts: 50
Default tween tint using actionscript

perfect - thank you very much mr senocular

;-)
TimDiacon is offline   Reply With Quote
Old 06-13-2005, 09:29 AM   #5
TimDiacon
Registered User
 
Join Date: Jan 2004
Posts: 50
Default non loop color tween

What I need to do is for example have a button with red on it and then a button with green on it. When you press the red one the movie clip tweens from iits current value to red. Then if you were to press the green one it would tween from its current value to green.

I guess you can define the colour array when releasing a button but is there a way of stopping the function from looping through the colours and instead just perform ing one transformation?
TimDiacon is offline   Reply With Quote
Old 06-13-2005, 10:07 AM   #6
backdrop
Actionscript Illiterate
 
Join Date: May 2005
Location: Sweden
Posts: 20
Default

http://laco.wz.cz/tween/?page=download
backdrop is offline   Reply With Quote
Old 06-13-2005, 01:49 PM   #7
TimDiacon
Registered User
 
Join Date: Jan 2004
Posts: 50
Default wow

That little package is amazing I didn't know it existed - thanks for sharing it!

TimDiacon is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:36 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.