我创建了一个组件,它在更改为此模式时具有编辑模式我希望组件播放过渡,状态正在更改但从未播放过渡
public function LabelTextInputSkin2()
{
super();
states = defineStates();
transitions = [defineTransitions()];
}
private function defineTransitions() : Transition
{
var parallel : Parallel = new Parallel();
var rotate : Rotate3D = new Rotate3D();
rotate.target = textInputEdit;
rotate.angleXFrom = 90;
rotate.angleXTo = 0;
rotate.duration = 500;
var rotateLabel : Rotate3D = new Rotate3D();
rotateLabel.target = labelDisplay;
rotateLabel.angleXFrom = 0;
rotateLabel.angleXTo = -90;
rotateLabel.duration = 500;
parallel.addChild(rotate);
parallel.addChild(rotateLabel);
var transition : Transition = new Transition();
transition.fromState = "normal";
transition.toState = "editable";
transition.effect = parallel;
return transition;
}