Hey guys,
I did a search but to no avail. What I’m trying to achieve is to get the global rotation of a nested movie clip instance. Much like localToGlobal, except for rotation, not x,y.
The only solution I can think of currently is to add all the parent rotations together with the current rotation.
So something like,
obj = this;
while (obj.parent != null)
{
totalRotation += obj.rotation;
obj = obj.parent;
}
But I’m not much a fan of this as it is rather cumbersome. I am hoping there is some simple localToGlobal type function for rotation.
Does anyone know of any or a better solution than above?
Your help would be greatly appreciated :hugegrin: