• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Play video FLVPlayback from specific time HELP

Explorer ,
Jan 12, 2021 Jan 12, 2021

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);
}


 

TOPICS
ActionScript

Views

162

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2021 Jan 12, 2021

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 12, 2021 Jan 12, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2021 Jan 12, 2021

Copy link to clipboard

Copied

LATEST

to what in my message are you replying?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines