I need to play forwards/backwards to target frame(or second) on my videoPlayer when I push a button. How would I do this?
Not sure how to tween the seek() property. I have TweenLite, which normally works great! But just not sure how to do it here.. :)
Thanks!
Disregarding the approach, you can animate a simple Object
with TweenLite
and update seek
property accordingly:
var obj:Object = {prop:0};
TweenLite.to(obj, duration, {prop:desiredFrame, onUpdate:updateSeek});
function updateSeek():void
{
videoPlayer.seek(obj.prop);
}