PDA

View Full Version : How can I retrieve the 3d properties of a MovieClip ?


orgicus
04-13-2010, 10:58 AM
Hello,

I am trying to get the x,y,z position of a movieclip.

If I select a MovieClip with no 3d transformation, all fine, I can just do

fl.trace(fl.getDocumentDOM().selection[0].x);

and it works,

the issue is once I apply a 3d tween, I can't get the position, I
always get 0. Ok, so once a clip is in '3D mode' you can't get the position using Element properties. How do you retrieve them then ?

I did another simple test,
using doc.translate3DSelection() and doc.rotate3DSelection()
then traced the .x and I got a value other than 0. I got the initial 2d x position before applying the 3d transforms.
If I moved the 3d object again, then traced, I only got the last 2d x position.

Any hints ?