?
Solved

Flash - colour movie clip from variable value

Posted on 2008-01-25
1
Medium Priority
?
621 Views
Last Modified: 2008-01-26
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
0
Comment
Question by:Mr_Splash
1 Comment
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
ID: 20747607
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
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month5 days, 8 hours left to enroll

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question