Hi
Hope someone can help…
I’ve created a motion tweened 3D animation that I now want to recreate using AS3. But how do I achieve the AS3 equivalent of switching from the 3D Translation Tool’s Local Transform option?
Trying to do it in code, I’ve written the following on a button (I want the animation to occur as I roll over the button)…
import fl.transitions.Tween;
import fl.transitions.easing.*;
words_mc.rotationY = -60
words_btn.addEventListener(MouseEvent.ROLL_OVER, rollOver1)
function rollOver1(event:MouseEvent):void {
var move1:Tween = new Tween(words_mc,“x”,Strong.easeOut,-215,400,2,true)
var move2:Tween = new Tween(words_mc,“z”,Strong.easeOut,-215,-340,2,true)
}
With this code the mc slides on the stage from left to right, but not with the correct 3D perspective. To do that, the tween needs to be switched from global to local. But How?
Any help would be much appreciated.