如何设置基于时间的触发器 [英] How to set up a Time based Trigger

查看:136
本文介绍了如何设置基于时间的触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在动画时间轴中的特定时间调用我的处理函数。

比如说,在第10秒,需要引发一个特定的触发器。



如何设置?

有没有办法根据时间在不同的执行阶段引发触发器?

[我目前正在使用Expr Blend 2.5六月预览]



提前致谢!



Kaangeyan。


解决方案

你好,

哦,我感觉一个Flash用户? Blend不支持这个特殊功能,实际上在代码中创建它是非常漫长的。您需要创建一个自定义时钟对象并创建一个自定义关键帧解决方案...所有非常讨厌。

Blend解决方案是创建多个故事板,或在代码中设置计时器和动画同时,你可以很容易地确定在达到所需时间段时的刻度,虽然这可能不会100%准确。

对不起,我不能在这里提供更多。

干杯

I need my handler function to be called at a particular time in the Animation Timeline.
Say, at 10th second, a particular trigger needs to be raised.

How do i set that??
Is there a way to raise triggers at different stages of execution based on the time?
[I am currently using Expr Blend 2.5 June Preview]

Thanks in advance!

Kaangeyan.

解决方案

Howdy,

Oh I sense a Flash user? This particular feature is not supported in Blend, and indeed creating it in code is very long winded. You would need to create a custom clock object and create a custom keyframing solution as well... all very nasty.

The Blend solution is to create multiple storyboards, or to set of a timer and animation in code at the same time so as you can easily determine a tick when your required time segment is reached, although this probably wont be 100% accurate.

Sorry I couldnt offer more here.

Cheers


这篇关于如何设置基于时间的触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆