Dynamic scalling and rotation bug

I have created a transform tool here:

http://allyourbids.com/poldev/wp-content/uploads/Tool.html

to understand issue please read carefully. It is business card designing tool click on box to add box to stage. Scale it using mouse and click save button you can also change color etc. But to understand issue only this step is enough. Scale and click save button drawing will be saved.

Open url below. This will retrieve saved drawing.

http://allyourbids.com/poldev/wp-content/uploads/savetool.php

You will see box dimensions will be exactly same as you saved now in first url please rotate the box and save it and refresh savetool.php you will see after rotation box dimension changes automatically while w,h variable perfectly comming from database but box automatically changes its dimensions.

To see new box dimension click on right hand side transform tool box icon match with w,h variable coming from database you will see that they are completely different from database w,h. In savetool.php from top text second line is width and height coming from database separated with “:” first one is width and second one is height and click transform tool icon to see box current width and height under rotation slider. Please see my retrieval code below:

var theContent:String = "mcBox~317~288~0~0~0~8.886421596557902~50~50~208.6~208.6";
var contentArray:Array = theContent.split(",");

////String For///////
for (i = 0; i < contentArray.length; i++) {

var clipArray:Array = contentArray*.split("~");

///////Save Box Clip Generation/////////////
if( clipArray[0]==“mcBox”){
newStagemask.rvars.text=newStagemask.rvars.text+contentArray*+"
";

var onet101b:MovieClip = new MovieClip();
var newBoxc:mymc = new mymc();

newBoxc.name=“cset”;

onet101b.addChild(newBoxc);
var newTxtccb:TextField = new TextField();
newTxtccb.name = “ccolor”;
newTxtccb.text = “0”;
newTxtccb.selectable = false;
newTxtccb.width=1;
newTxtccb.height=1;
newTxtccb.alpha=0;
onet101b.addChild(newTxtccb);
var newTxtccsb:TextField = new TextField();
newTxtccsb.name = “cstroke”;
newTxtccsb.text = “0~0”;
newTxtccsb.selectable = false;
newTxtccsb.width=1;
newTxtccsb.height=1;
newTxtccsb.alpha=0;
onet101b.addChild(newTxtccsb);
onet101b.addEventListener(MouseEvent.MOUSE_DOWN, handleClickk);
onet101b.addEventListener(MouseEvent.MOUSE_UP, handleClickkkk);

onet101b.name=“mcBox”;
currentclip=onet101b;
addChild(onet101b);
onet101b.x=clipArray[1];
onet101b.y=clipArray[2];
var newc=onet101b.getChildByName(“cset”);
var newcolor=onet101b.getChildByName(“ccolor”);
var newstroke=onet101b.getChildByName(“cstroke”);
try
{
trace(onet101b.getChildByName(“cset”).width);
}catch($e:Error){}
//trace(newBox.x);
if(clipArray[5]!=“0”){
newc.graphics.lineStyle(clipArray[4], clipArray[5]);
newc.graphics.drawRect(-25, -25, 50, 50);
newstroke.text=clipArray[4]+"~"+clipArray[5];
}

onet101b.getChildByName(“cset”).width=clipArray[7];
onet101b.getChildByName(“cset”).height=clipArray[8];

if(clipArray[3]!=“0”){
var myTransform:ColorTransform = new ColorTransform();
myTransform.color = clipArray[3];

newc.bgbg.transform.colorTransform = myTransform;

newcolor.text=clipArray[3];
}
newStagemask.rvars.text=newStagemask.rvars.text+clipArray[9]+":"+clipArray[10]+"
“+clipArray[6]+”
"+clipArray[3];

if(clipArray[6]!=“0”){
onet101b.rotation=clipArray[6];
}
onet101b.width=clipArray[9];
onet101b.height=clipArray[10];

//trace(newBox.x);
currentclip=onet101b;

mtargets.push(onet101b);

}

Thank you for your precious time.