# Tinting an object at runtime without breaking tweens

**URL:** <https://forum.kirupa.com/t/tinting-an-object-at-runtime-without-breaking-tweens/254290>\
**Category:** flash\
**Created:** [March 10, 2008, 5:00pm UTC](https://forum.kirupa.com/t/tinting-an-object-at-runtime-without-breaking-tweens/254290 "2008-03-10T17:00:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehudros](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@ehudros](https://forum.kirupa.com/u/ehudros)\
**Post date:** [March 10, 2008, 5:00pm UTC](https://forum.kirupa.com/t/tinting-an-object-at-runtime-without-breaking-tweens/254290/1 "2008-03-10T17:00:16Z")

</div>

hi everyone,  
I’m currently quite stumped at something I think should be possible.  
I have a complex object that is motion tweened, and I want to change its tint at runtime.  
However, it seems whenever I try to set a tint (or to that matter even try to set anything in the transform object) it resets the entire matrix/transform data. So I am stuck with a scaleX/scaleY of 1, and a static object with the color I tinted to.

A demo of what I am trying to do is here:  
[http://www.mediafire.com/?nzsebpjzdbg](http://www.mediafire.com/?nzsebpjzdbg)

Any idea how and why this happens?

Thanks,  
Ehud
