# Help! need quick advice and help

**URL:** https://forum.kirupa.com/t/help-need-quick-advice-and-help/310473
**Category:** Uncategorized
**Created:** [June 10, 2010, 9:30pm UTC](https://forum.kirupa.com/t/help-need-quick-advice-and-help/310473 "2010-06-10T21:30:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jspark11](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jspark11](https://forum.kirupa.com/u/jspark11)
#### Post date: [June 10, 2010, 9:30pm UTC](https://forum.kirupa.com/t/help-need-quick-advice-and-help/310473/1 "2010-06-10T21:30:34Z")

</div>

hi everyone,

I’m doing this site right now: [http://www.nmr360.com](http://www.nmr360.com)

I have one problem: the rotating 3d cube, as you can see, is not really symmetrical when it is centered (as it is now) (con.x = stage.stageWidth/2)

Why is that? When I don’t center it, there is no distortion.

Help! thanks a lot!

here’s the code for the cube ( and does anyone know how I can modify the size of this cube? I’ve tried to change the axes numbers but no result)  
[SIZE=1]  
import com.theflashblog.fp10.SimpleZSorter;  
import com.theflashblog.fp10.SimpleZSortVO;  
import flash.display.DisplayObject;  
import flash.geom.Point

con.getChildAt(0).rotationY = 90;  
con.getChildAt(0).x = -140;

con.getChildAt(1).rotationY = 90;  
con.getChildAt(1).x = 140;

con.getChildAt(2).z = 140;

con.getChildAt(3).rotationX = 90;  
con.getChildAt(3).y = 140;

con.getChildAt(4).rotationX = 90;  
con.getChildAt(4).y = -140;

con.getChildAt(5).z = -140;

addEventListener(Event.ENTER\_FRAME, loop);

function loop(e:Event):void {  
SimpleZSorter.sortClips(con);  
con.rotationY -= (mouseX - stage.stageWidth / 2) \* 0.003;  
con.rotationX += (mouseY - stage.stageHeight / 2) \* 0.003;  
}[/SIZE]
