暂停效果并恢复

时间:2012-10-30 16:08:28

标签: flex

我想在鼠标悬停时为组件创建一个效果。当鼠标移出时,效果会反转。

    <fx:Declarations>
        <s:Parallel id="move">
                <s:Move3D id="moveDown"  yBy="+100"/>
                <s:Pause  />
                <s:Move3D id="moveUp"  yBy="-100"/>
        </s:Parallel>
    </fx:Declarations>

<s:Panel id="userMenu" includeIn="USER" x="920" y="35" width="689" height="142"

             mouseOver="move.play(Array(userMenu), false)" 
             mouseOut="move.resume(Array(userMenu), false)"
             rotationZ="180" >
        <s:HGroup x="44" y="9" width="590" height="62" gap="15" horizontalCenter="1" rotationZ="180"
                  verticalCenter="1"
                  x.USER="10" y.USER="208">

        </s:HGroup>
    </s:Panel>

但是我收到了这样的错误

1152: A conflict exists with inherited definition mx.core:UIComponent.move in namespace public mx.core:IFlexDisplayObject.

添加move.resume()函数后。为什么我收到此错误?以及如何调试它?

0 个答案:

没有答案