我得到了一些代码:
...
<fx:Declarations>
<s:Animate id="toRight" target="{cp.layout}">
<s:SimpleMotionPath property="horizontalScrollPosition" valueFrom="{cp.layout.horizontalScrollPosition}" valueTo="{cp.layout.horizontalScrollPosition+42}"/>
</s:Animate>
</fx:Declarations>
....
....
<s:List id="cp" horizontalScrollPolicy="off" itemRenderer="com.mRenderer" horizontalCenter="1" verticalCenter="1" change="changeEvt(event)" borderAlpha="0" width="458" height="65" initialize="initList();" >
......
我使用该动画来平滑列表中的箭头移动。
但我收到了一些警告:
数据绑定将无法检测到“布局”的分配。
我知道布局在列表中不可绑定。但它不是自定义类。我怎样才能防止这种情况?