ProblemYou want to reset the color of a display object back to the default. SolutionAssign a new ColorTransform object with default values to the transform.colorTransform property of the display object. DiscussionThe default values of a flash.geom.ColorTransform object will reset the color of a display object. You can construct a ColorTransform object with default values by calling the constructor with no parameters. The following example resets the color settings for sampleSprite: sampleSprite.transform.colorTransform = new ColorTransform( ); See AlsoRecipes 10.1 and 10.2 |