Changing fill color of MovieClip Actionscript 3 -
I want to ask, how to change the fill color of an example on the forum - I could do it using the ColorTransform object But this color of the whole example changes, not only the fill I only want to change the filling color, not the stroke color Can anyone help me?
This is my code:
function color () {var myColorTransform: ColorTransform = new ColorTransform (); MyColorTransform.color = Some caller numbers; ColoredObject.transform.colorTransform = myColorTransform; }
After creating a shape in the form of action script it can not be done The way to determine what the stroke is and what is full.
You have a few options
Separate your fill and stroke in different movie clips and only change color to fill the color.
or
If this is a simple shape, then draw it using the graphics object where you can specify the filling color and stroke color.
Perhaps the hood and my preferred method will be the first option, as the shape is likely to be complex and instead it's more control to be able to change it instead of a designer rather than a designer. . It's a bit more work, though a bit more complex.
Comments
Post a Comment