# bitmapData problem

**URL:** https://forum.kirupa.com/t/bitmapdata-problem/240868
**Category:** flash
**Created:** [October 7, 2007, 3:24pm UTC](https://forum.kirupa.com/t/bitmapdata-problem/240868 "2007-10-07T15:24:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Xannax](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/xannax/32/3350_2.png) [@Xannax](https://forum.kirupa.com/u/Xannax)
#### Post date: [October 7, 2007, 3:24pm UTC](https://forum.kirupa.com/t/bitmapdata-problem/240868/1 "2007-10-07T15:24:11Z")

</div>

Ok I 've got this site with a papervision-based 3d transition; basically the page gets cut into a grid of 3d squares that flip to reveal the next page.  
So I have this function that takes ob1:DisplayObject as a parameter

```auto

pageFrontBmp = new BitmapData(obj1.width,obj1.height);
pageFrontBmp.draw(obj1)
            for(var currCol:Number = 0;currCol<=3;currCol++){
                currCoordY = sqrSize*currCol
                for(var currRow:Number = 0; currRow<=3;currRow++){
                    currCoordX = sqrSize*currRow
                    bmpFront.copyPixels(pageFrontBmp,new Rectangle(currCoordX,currCoordY,sqrSize,sqrSize),new Point(0,0));
                    var square3d:Square3D = new Square3D(sqrSize,bmpFront,bmpBack)
                    square3d.planeFront.x=currCoordX
                    square3d.planeFront.y=currCoordY
                    square3d.go()
                    trace(square3d)
                    square.push(square3d)
                    scene.addChild(square[square.length-1].planeFront)
                    }//end of for loops for colons
                }//end of for loop for rows

```

square3D is a custom class that holds two papervision planes, one for the front, and one for the back.  
What is weird is: the 3d square gets the right x and y, and is placed where it should be, on the screen; but the bitmapData applied on the face is always the same, a weird squished part of my main pageFrontBmp, I can’t even understand which part.  
Anyone understands what the problem is?

Ps: edit: a weird squished FLIPPED part of the original image
