Converting rotatation value from flash into svg

hi,

Advance thankx for helping me

Here i am taking the rotation value from flash and transfering into svg by the forumalue and getting fdeg then also it is not coming in the seen position of flash in svg file

if doesnt affect rotation scale alone changing means it comes in right position

function svgsave() {
sendXML = new XML("<?xml version=“1.0” standalone=“no”?>");
sendXML.ignoreWhite = true;
sendXML.contentType = “text/xml”;
root = sendXML.createElement(“svg”);
//root.attributes.width = 400;
//root.attributes.height = 300;
root.attributes.xmlns = “http://www.w3.org/2000/svg”;
root.attributes[“xmlns:xlink”] = “http://www.w3.org/1999/xlink”;
root.attributes[“xmlns:html”] = “http://www.w3.org/1999/xhtml”;
sendXML.appendChild(root);
for (i=0; i<=globalArray.length-1; i++) {
imagName = globalArray*.name.split("")[0];
imageNo = globalArray*.name.split("")[1];
startx = globalArray*._x;
starty = globalArray*._y;
/////////////keeper
if (imagName == “keeper”) {
keepercolor = globalArray*.CoLor;
trace(“keepercolor”+keepercolor);
trace(“startx::”+startx);
trace(“startx::”+starty);

/////////////
main_img = sendXML.createElement(“image”);
bgimagePath = “asset/playground/”+globalArray*.CoLor+"/svg"+swfFileName;
main_img.attributes.width = 599;
main_img.attributes.height = 433;
main_img.attributes.x = 138;
main_img.attributes.y = 140;
main_img.attributes[“xlink:href”] = “asset/playground/green/svg/11.svg”;
root.appendChild(main_img);
///////////////////////
swfFileName = coach_array[parseInt(imageNo)].split("/")[2];
svgname = swfFileName.split(".")[0];
svgpath = svgname+".svg";
imagePath = “asset/keeper/”+globalArray*.CoLor+"/"+swfFileName;
isvgPath = “asset/keeper/”+globalArray*.CoLor+"/svg/"+svgpath;
img = sendXML.createElement(“image”);
xx = globalArray*._height;
yy = globalArray*._width;
xx1 = _parent.MainMC._x+globalArray*._x;
yy1 = _parent.MainMC._y+globalArray*._y;
myscalex = globalArray*._xscale;
myscaley = globalArray*._yscale;
trace(“myscalex::”+myscalex);
trace(“myscaley::”+myscaley);
arotate1 = Math.round(globalArray*._rotation);
trace(“arotate1::”+arotate1);
////////////////////////////////////
dx = globalArray*._x;
dy = globalArray*._y;
var dist:Number = Math.sqrt(dxdx+dydy);
var diam:Number = 2arotate1;
fdeg = 57.3
diam/dist;
/////////////////////////
img.attributes.fill = keepercolor;
img.attributes.transform = “rotate(”+fdeg+" “+100+” “+100+”)";
img.attributes.x = xx1;
img.attributes.y = yy1;
img.attributes.width = globalArray*._width;
img.attributes.height = globalArray*._height;
img.attributes[“xlink:href”] = isvgPath;
root.appendChild(img);
//////////////////////////
/////////////
}

Regards,
R.Denesh Kumar
+919952018252
rdene2000@yahoo.com