PDA

View Full Version : flash.geom.ColorTransform.



Macadia
September 29th, 2007, 11: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
May 23rd, 2008, 07: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;