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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |