5 Replies Latest reply on Jul 1, 2010 8:23 AM by leonino1971

    ColorTransform

    leonino1971

      Hy,

      Why this script don't go?

       

      loadVariables('unit.txt',this);
      import flash.geom.ColorTransform;
      import flash.geom.Transform;

      var colorTrans:ColorTransform = new ColorTransform();
      var transbox1:Transform = new Transform(box1);

      if (pulsante == OFF) {
      transbox1.colorTransform = colorTrans;
      colorTrans.rgb = 0xFF0000;
      colorTrans.alphaMultiplier = 0.5;
      transbox1.colorTransform = colorTrans;
      };

       

      Bye