IT Community - Software Programming, Web Development and Technical Support

tint effect

This is a discussion on tint effect within the Flash Actionscript Programming forums, part of the Web Development category; hi, Iam working on tint effect.Can any one help me by providing a reference site which might be helpful ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Flash Actionscript Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-27-2007, 06:43 AM
nssukumar nssukumar is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 155
nssukumar is on a distinguished road
Default tint effect

hi,
Iam working on tint effect.Can any one help me by providing a reference site which might be helpful for my work.

sukumar
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-26-2008, 09:05 PM
aramesh aramesh is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 71
aramesh is on a distinguished road
Default Re: tint effect

Hi,

We can apply a tint color for an movieclip using the function below.

var colorful=new Color("MovieClip Name");
colorful.setTint(200,100,200,100); // (red val, green val, blue val, alpha val)

Color.prototype.setTint = function(r, g, b, amount) {
var percent = 100-amount;
var trans = new Object();
trans.ra = trans.ga=trans.ba=percent;
var ratio = amount/100;
trans.rb = r*ratio;
trans.gb = g*ratio;
trans.bb = b*ratio;
this.setTransform(trans);
};


Regards
A.Ramesh
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open_basedir restriction in effect error in PHP BenR41 PHP Programming 0 02-25-2008 06:05 AM
How can I tell when Daylight Saving is in effect? itbarota HTML, CSS and Javascript Coding Techniques 1 01-01-2008 07:40 PM
Magnifying Glass Effect aramesh Flash Actionscript Programming 0 12-12-2007 09:32 PM
Cause-Effect Graphing Techniques Shanthi Software Testing 1 11-16-2007 03:39 AM
Drop shadow effect using css muthukumar HTML, CSS and Javascript Coding Techniques 0 07-17-2007 11:43 AM


All times are GMT -7. The time now is 01:59 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0