View Full Version : flash.geom.ColorTransform.
Macadia
09-29-2007, 10:52 AM
when i use setRGB in AS3, i get this:
1061: Call to a possibly undefined method setRGB through a reference with static type flash.geom:ColorTransform.
kc_quicky
05-23-2008, 06:51 AM
when i use setRGB in AS3, i get this:
1061: Call to a possibly undefined method setRGB through a reference with static type flash.geom:ColorTransform.
Try.... I'm just trying to work out transparency now so the colour is not solid and is maybe 20%. Can anyone help at all?
Andrew
import flash.geom.ColorTransform;
// Changes mc's color to red.
var newColorTransform:ColorTransform = mc.transform.colorTransform;
newColorTransform.color = 0xff0000;
mc.transform.colorTransform = newColorTransform;
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.