using transition.to( ) to change an objects color

How do use transition.to( ) to change an object’s, say a rounded rectangle, color. Or do I have to register for enter frame and do it programmaticly? [import]uid: 7467 topic_id: 5503 reply_id: 305503[/import]

If you want to use transition.to you need two objects of different colours on top of each other.

Both have alpha of 1.0 and you apply a transition.to with alpha = 0.0 on the top object.

It will appear to fade into the colour of the object below it. [import]uid: 11393 topic_id: 5503 reply_id: 18606[/import]

Clever trick, I’ll have to remember that one. [import]uid: 12108 topic_id: 5503 reply_id: 18635[/import]