我创建了一个在更改为此模式时具有编辑模式的组件我想让组件进行转换,状态正在改变,但转换从未播放
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;
}