Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我按下按钮时,我需要在我的 videoPlayer 上向前/向后播放目标帧(或第二帧)。我该怎么做?
不知道如何补间 seek() 属性。我有 TweenLite,通常效果很好!但只是不确定如何在这里做.. :)
谢谢!
忽略该方法,您可以为简单Object的 with设置动画TweenLite并相应地更新seek属性:
Object
TweenLite
seek
var obj:Object = {prop:0}; TweenLite.to(obj, duration, {prop:desiredFrame, onUpdate:updateSeek}); function updateSeek():void { videoPlayer.seek(obj.prop); }