Copy link to clipboard
Copied
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);
}
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
IT means cut Video where you want to play 🙂 But thanks
Copy link to clipboard
Copied
to what in my message are you replying?