This is probably easy but I just can’t figure out how to do it in AS3 and I can’t seem to find the answer here on the forums or via google- maybe I just don’t know what to search for.
I want to take the color properties of a movie clip and apply it to another movie clip. Without a ton of code.
Previously in AS2, you could do it as such:
var firstMcColor:Color = new Color(first_mc); var secondMcColor = new Color(second_mc); secondMcColor.setTransform(firstMcColor.getTransform());
But that’s no longer possible in AS3, and so I think I have to use the colorTransform class, but the problem with that is I don’t know how to get the first movieclip’s color properties as a colorTransform object only stores color offsets and multipliers… and not the properties themselves.
So to rephrase my initial question, I need to get the first movie clips color properties (such as Alpha, Red, Green, so on) and then somehow apply those color properties to the second movie clip. What would be the best way to go about this in AS3?