Forum Moderators: open
i have a number of prebuilt objects on the stage, they are currently all white with black outlines.
ive also built a set of varouis color swatches.
when the user clicks on a color swatch , the mouse disappears and a painbucket icon appears, and the color they have selected is stored as a variable. if they then click on one of the prebuilt objects, the actionscript reads the color from the variable, and uses setRGB to change the object to the color they have picked.
the problem is that when the setRGB is called, it colors the entire object, including the outlines. im trying to find a way to keep the outlines black.
just to make it clear, the color transformations are to be performed by the end user when the movie is published.
thanks
What I think may be happening is the object needs to have 2 parts: a. a stroke and b. a fill ( where fill is the main part of the object to be colored ).
So it could look like this sort of:
Object_mc
-> Stroke_mc
-> Fill_mc
I think you are setting it this way:
Object_mc.myColor.setRGB(0x330033);
Where it should be:
Object_mc.Fill_mc.myColor.setRGB(0x330033);
Let me know if I'm on the right track. :)
yep its 2004.
the project is pretty cool - its a site for kids where they create there own character from prebuilt bodies clothes etc etc - this then becomes there 'guide' through the site