Actions and events links to arbitrary time video playback

  • Hi,

    not automatically, but you could check the "time" variable (this is the current time number of the video in seconds) of the videoplayer plugin (e.g. with the looping delayedcalls) and then call other actions,

    e.g.

    Code
    <action name="checkvideotime">
      trace('video time=',plugin[video].time);
      if(plugin[video].time GT 5, action(...));    
      ...
      delayedcall(1.0, checkvideotime() );
    </action>

    best regards,
    Klaus

  • Hi klaus is it possible to to have two conditions : A and B, or is it possible to write your code like this

    Code
    <action name="checkvideotime">
      trace('video time=',plugin[video].time);
    
    
      if(2 GT plugin[video].time GT 5, action(...));    
      ...
      delayedcall(1.0, checkvideotime() );
    </action>


    with 2<time<

    or is it possible to break only the delayedcall, or the action without breakall() or stop all()


    my problem is to do appear a video hotspot at different time with a tween alpha, i need to check different times with opposites actions.


    Thank you for your answer


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!