1 Reply Latest reply on Jan 7, 2015 5:31 PM by Johninus

    How to build a interactive video?

    Johninus Level 1

      I tried to use a flvplacy back to play the mp4 video and put button, arrow and label in other layers in different tine frame correspond with the target and position in the video.

       

      But how to resolve:

      1. synchronize the frame with video when user change/seek the video, it doesn't work out below code

       

      function progressHandler(event:VideoProgressEvent):void

      {

          var bl:Number = Math.round(event.bytesLoaded / 1000);

          var bt:Number = Math.round(event.bytesTotal / 1000);

          gotoAndPlay(bl);

      }

      player.addEventListener(VideoProgressEvent.PROGRESS, progressHandler);

       

       

      2.how to adaptive the button, arrow, label position to match the item in the video when user  enlarged or teduced the video screen?

       

      Thanks,