We help IT Professionals succeed at work.

Flash - colour movie clip from variable value

I have a variable in my movie which has a hex colour code as it's value i.e. "#ffcc00"

I have also got a movie clip with the instance name 'border'

Can someone tell me the actionscript that will take that variable value and set the movie clips 'Tint' to that colour and 100%

Thankyou
Comment
Watch Question

Commented:
put this on the first frame
var changeColor = "0xffoo00";

then say the rest is on a button..

on(release){
myColor = new Color(border);
myColor.setRGB(changeColor);
setProperty("border", _alpha, "100");
}

Z

Explore More ContentExplore courses, solutions, and other research materials related to this topic.