在 Flex 3 中移动后对象消失

发布于 2024-08-16 19:48:40 字数 356 浏览 3 评论 0原文

我正在尝试在 Flex 中准备一个简单的照片动画。我完成了大部分工作,但是当我执行以下操作时,

<mx:Sequence id="bird" target="{birdImage}">
    <mx:Move xFrom="-100" yFrom="-100" xTo="100" yTo="100" duration="700" effectEnd="{bird2.play()}" easingFunction="mx.effects.easing.Quadratic.easeIn" />
</mx:Sequence>

问题是在下一部分开始之前移动之后,图像消失了。我在这里做错了什么?

I am trying to prepare a simple animation of photos in flex. I got most of it done but when ever i do the following

<mx:Sequence id="bird" target="{birdImage}">
    <mx:Move xFrom="-100" yFrom="-100" xTo="100" yTo="100" duration="700" effectEnd="{bird2.play()}" easingFunction="mx.effects.easing.Quadratic.easeIn" />
</mx:Sequence>

The problem is that after the move before the next part starts the image disappears. What am i doing wrong here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

调妓 2024-08-23 19:48:40

我在移动 Hbox 中的两个面板时遇到了类似的问题。解决方案是在效果开始之前将容器的 autoLayout 属性设置为 false。
如果您遇到类似情况希望对您有所帮助。

再见!

I had a similar trouble with moving two panels in a Hbox. The solution was to set the container's autoLayout property to false just before the effect starts.
If you are in a similar situation hope it helps.

Bye!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文