This content has been marked as final. Show 4 replies
no, you cannot remove setRGB.
you would need to "record" the original colors of my_mc, apply your color change and then return your movieclip back to its original color.
to record my_mc's colors, you'll create bitmap and use the draw method of bitmaps to draw your my_mc to your bitmap.
to return your my_mc back to its original color use the attachBitmap method of movieclips.
Sorry, I'm a newbie to any serious form of Actionscripting... Could you explain your method to me in more detail?
"BrettArchibald" <email@example.com> wrote in message
> OK, so if I've set the color of a movie clip to change via AS on a button
> press, like so:
> var my_color:Color = new Color(my_mc);
> How do I then get it to revert back to its original state when I press
> The Flash Help files didn't take me past this first step...
> Please note that the movie clip in question is is not one color as such...
> It's a movie clip containing several objects of varying colors and shades.
> When I DO set it to a color on the first button press, that's because I
> it to be turned into a silhouette type thing. But then when I press
> button, I want it to revert back to it's original NO-color state which
> off ALL its various colors...
> Can I not REMOVE the "setRGB" once it's been applied?
how's the setTransform() method help here?