动画结束时查看过渡
事情是这样的:
我的移动应用程序的主视图上有一个图像和一个按钮。
我通过按下按钮将动画应用于图像。效果很好。
问题:
我想添加一个视图转换,在动画完成后推送到下一个视图。
代码:
AS:
protected function nextView()
{
navigator.pushView(View2);
}
MXML:
<s:Button id="Button" click="anim.play()"/> //anim.play() is in
//the declarations tag and is working as expected.
<s:Image id="img" source="@Embed('assets/image.png')"/>
我尝试过: -
在动画调用后将 nextView()
添加到 click 方法
- 使用 按钮属性中的effectEnd="nextView()"
感谢您提供的任何帮助和见解。
Here's the deal:
I have an image and a button on my mobile app's homeview.
I apply an animation to the image by pressing the button. That works great.
PROBLEM:
I want to add a view transition that pushes to the next view after the animation completes.
CODE:
AS:
protected function nextView()
{
navigator.pushView(View2);
}
MXML:
<s:Button id="Button" click="anim.play()"/> //anim.play() is in
//the declarations tag and is working as expected.
<s:Image id="img" source="@Embed('assets/image.png')"/>
I've Tried:
-Adding nextView()
to the click method after the animation call
-Using effectEnd="nextView()"
in Button properties
Thank you for any help and insight you can provide.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
effectEnd 似乎对我有用:
effectEnd appears to work for me: