I use this function to apply an RGB color to a movieclip. Just from an example I found on livedocs. But how do I use this new color object and just get the RGB color from an existing MC instead of the line current_color.rgb = 0xFF0000, i want to set it dynamically based on the color of another MC.

applyColor = function (mc)
{
        var t = mc
        var current_transform = new Transform (t);
        var current_color = new ColorTransform ();
        current_color.rgb = 0xFF0000;
        current_transform.colorTransform = current_color;
}

thankyou
M


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to