View Full Version : setRGB in AS3
Macadia
09-29-2007, 01:51 AM
is setRGB replaced with something in AS3?
if so, what is it?
thanks.
Michael Chen
09-29-2007, 06:34 AM
Under help doc "ActionScript 2.0 Migration"...
"flash.geom.ColorTransform.color" for AS3
Macadia
09-29-2007, 10:44 AM
when i do that, i get this:
1172: Definition flash.geom.ColorTransform:color could not be found.
Michael Chen
09-29-2007, 10:21 PM
Try this...
import flash.geom.ColorTransform;
// Changes mc's color to red.
var newColorTransform:ColorTransform = mc.transform.colorTransform;
newColorTransform.color = 0xff0000;
mc.transform.colorTransform = newColorTransform;
Macadia
10-11-2007, 11:41 AM
Michael,
Thanks, I'm going to try that out!
kc_quicky
05-23-2008, 06:45 AM
Michael,
Thanks, I'm going to try that out!
IS it possible to get it to work with a tint instead.
Andrew
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.