PDA

View Full Version : change color


akschinas
01-03-2003, 05:40 PM
Hi,

I'm working on a drag and drop interaction. I want to drag a movie clip with text onto a target and have it change color. Can anyone tell me what I need to do to change the color once it's dropped onto the target?

Thanks!

cheez
01-03-2003, 07:04 PM
Not sure what event will signal the drop onto target but here is one way to re-color your MC:


newMCColor = new Color( _root.myMCwithText);
newMCColor.setRGB(0x00FF00); // 00FF00 is hex value for green


...where 00FF00 can be any hex color value. The hex value is preceeded by "0x" [zero - x] . Don't know exactly why! :)

Good luck,
Cheez