View Full Version : Tint with actionscript?
Snore
08-03-2003, 07:30 PM
Is it possible to change the tint of an MC via actionscript?
if so, how?
Thanks ye muchly.
Colin Campbell
08-03-2003, 08:22 PM
Um, lets try this as an experiment:
_root.myMovieClip._tint = 34
Thats assuming its a percentage... I can't remember right now... I don't think it is though
not working, i'll check for you though, hold on
freddycodes
08-03-2003, 08:47 PM
You can't really change the tint with AS, _tint is not a valid movie clip property. You can change the color with the Color object and/or the alpha with the _alpha property.
Snore
08-04-2003, 10:40 AM
ok, thanks anyway :)
smoke10010
08-04-2003, 11:33 PM
tinting can be done by using various effects such as alpha
to change tint over a frame add something like
this.onEnterFrame=function() {
this._alpha=this._alpha+10;
}
annexion
08-05-2003, 02:24 AM
But that's not changing tint. That's simply the transparency of the symbol as a whole.
The closest you're going to get to AS tint is the following.
var colors = {rb:63.75, gb:63.75, bb:127.5};
(new Color(mnNameHere)).setTransform(colors);
Something like that...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.