Correct usage of getBounds will give you the correct result. You have to
point the coordinate scope of the getBounds method to the parent of the mc.

var o:Object;
o = mc.getBounds (mc._parent);
trace ("w: "+(o.xMax-o.xMin));
trace ("h: "+(o.yMax-o.yMin));
mc._rotation = 45;
o = mc.getBounds (mc._parent);
trace ("w: "+(o.xMax-o.xMin));
trace ("h: "+(o.yMax-o.yMin));

// outputs
/*

w: 114.95
h: 114.95
w: 162.6
h: 162.6

*/


Yotam.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to