PDA

View Full Version : Tinting MC's With Action Script?



iamapathy
May 12th, 2003, 11:00 AM
Is it possible to use the tint effect through action scripting?

m_andrews808
May 12th, 2003, 11:04 AM
you can change the colour of a clip with as like this:



Col = new Color(myClip);
Col.setRGB(0xff0000);


that simulates a tint with 100% opacity, but I don't know how you'd do it if you wanted say 50% transparency

iamapathy
May 12th, 2003, 11:12 AM
Actually, 50% transparency is exactly what i needed. (-:

Isn't there some sort of property that can change this?

m_andrews808
May 12th, 2003, 11:14 AM
you can set the movieclips' transparency to 50% by putting this in its first frame:

_alpha = 50;

but thats not the same as giving a movieclip a tint in flash and then setting the alpha of that tint to 50%. Which one are you after?

iamapathy
May 12th, 2003, 11:18 AM
Sorry, i meant a tint with 50% transparency... like having the image darkened(if the tint was black).

senocular
May 12th, 2003, 11:31 AM
http://proto.layer51.com/d.aspx?f=615

iamapathy
May 12th, 2003, 10:41 PM
Originally posted by senocular
http://proto.layer51.com/d.aspx?f=615 interesting prototype, senocular... i only wish i knew what was goin on... :P