【问题标题】:Flex 4 - Is it possible to animate UITextFieldFlex 4 - 是否可以为 UITextField 设置动画
【发布时间】:2011-10-24 10:16:15
【问题描述】:

是否可以在 UITextField 上提供移动效果。

var aminolabel:UITextField;
var aminoLabelMove:Move = new Move(aminolabel);                     
aminoLabelMove.xFrom = 0;
aminoLabelMove.xTo = 100
aminoLabelMove.duration = 1300;                 
aminoLabelMove.play();

【问题讨论】:

    标签: actionscript flex4


    【解决方案1】:

    UITextField 不能有移动之类的动画。内部调用transformX,transformY。可以有面部效果动画。

    解决方案 将 UITextField 实例添加到 UIComponent 并将移动效果应用到 UIComponent。

    例子

    var aminolabel:UITextField;
    var aminoLabelUI:UIComponent;
    
    aminoLabelUI.addChild(aminolabel);
    
    var aminoLabelMove:Move = new Move(aminoLabelUI);                     
    aminoLabelMove.xFrom = 0;
    aminoLabelMove.xTo = 100
    aminoLabelMove.duration = 1300;                 
    aminoLabelMove.play();
    

    【讨论】:

      猜你喜欢
      • 2015-10-22
      • 2012-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-05
      • 1970-01-01
      相关资源
      最近更新 更多