Skip to main content
Known Participant
January 11, 2008
Answered

Movie Clip tinting

  • January 11, 2008
  • 1 reply
  • 301 views
I am trying to change the tint of a movie clip using actionScript with the following command

myMovieClip.tintColor: #123456;

I get this error: must be a simple identifier.

Suggestions?
This topic has been closed for replies.
Correct answer GenaroRG
import fl.motion.Color;
import flash.geom.ColorTransform;

var ct:Color = new Color();
ct.setTint(0xFF0000, 0.5);
mc.transform.colorTransform = ct;

1 reply

GenaroRGCorrect answer
Inspiring
January 11, 2008
import fl.motion.Color;
import flash.geom.ColorTransform;

var ct:Color = new Color();
ct.setTint(0xFF0000, 0.5);
mc.transform.colorTransform = ct;