# Problem with transform Matrix

**URL:** <https://forum.kirupa.com/t/problem-with-transform-matrix/228733>\
**Category:** flash\
**Created:** [June 11, 2007, 5:20am UTC](https://forum.kirupa.com/t/problem-with-transform-matrix/228733 "2007-06-11T05:20:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![costa](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@costa](https://forum.kirupa.com/u/costa)\
**Post date:** [June 11, 2007, 5:20am UTC](https://forum.kirupa.com/t/problem-with-transform-matrix/228733/1 "2007-06-11T05:20:36Z")

</div>

Dear all,

I need your help to solve this little problem.

I am adding movie clips from the library to a “container” which I scroll in both direction, x-y, like a tile based game. As part of the process I change the transform matrix of some of the mc in order to rotate o skew them.

The problem is those I change the matrix shake or tremble when a scroll the container.

If I set cacheAsBitmap = true the problem disappears but a new one arrives. The division between mc some times is not perfect and it is visible.

Do you have an idea how I can avoid this problem?.

Thanks in advance

Edit:  
This is the code I use before to move the container:

```auto
var classRef:Class = getDefinitionByName(nameMC) as Class;
var instance:Object = new classRef();
var myMatrix:Matrix = new Matrix();
myMatrix.tx = myTx;
myMatrix.ty = myTy;
myMatrix.a = myA;
myMatrix.b = myB;
myMatrix.c = myC;
myMatrix.d = myD;
instance.transform.matrix = myMatrix;
this.container.addChildAt(DisplayObject(instance),depthMC);

```
