Skip to main content
dalvydasv27776233
Inspiring
January 12, 2021
Question

Play video FLVPlayback from specific time HELP

  • January 12, 2021
  • 1 reply
  • 259 views

I have problem. It is no big but I need to do it:)

I want to play video from specific time but this is not work for me.

ERROR
1119: Access of possibly undefined property startTime through a reference with static type fl.video:FLVPlayback.

 

import fl.video.*;
import fl.video.VideoEvent;
import flash.events.*;

add();
 
function add():void{
	
	myVideo.autoPlay=false;
	myVideo.source="video/1.mp4";
	myVideo.skinAutoHide=true;
	myVideo.startTime = 60;

	myVideo.play();
	myVideo.addEventListener(Event.COMPLETE, completePlay);
}


function completePlay(e:Event):void {
	myVideo.stop();
	myVideo.autoRewind = true;
	myVideo.removeEventListener(Event.COMPLETE, completePlay);
}


 

This topic has been closed for replies.

1 reply

kglad
Adobe Expert
January 12, 2021

you need to use an event and listener to ensure enough video is loaded to"move the playhead to the start point you want.  and you need to use a valid flvplayback property or method to move to that point (eg, the playheadTime property or the various seek methods).  startTime isn't valid.

dalvydasv27776233
Inspiring
January 12, 2021

IT means cut Video where you want to play 🙂 But thanks

kglad
Adobe Expert
January 12, 2021

to what in my message are you replying?