Skip to main content
Participant
June 17, 2023
Question

button on imported video

  • June 17, 2023
  • 1 reply
  • 102 views

help me make that play button funtioning on the imported video pls! i need it able to play and pause the video. btw, i'm using adobe animate 2023

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 17, 2023

what video? 

 

did you import something into that video layer (eg, a video) that you expect to play when publishing?  if yes, that video must be an flv file.  is it?

 

 

Ollie WAuthor
Participant
June 18, 2023

yes that video is flv

 

kglad
Community Expert
Community Expert
June 18, 2023

you can play and stop the flv video by playing and stopping the timeline that contains the flv video:

 

var toggle:Boolean=true;
yourbutton.addEventListener(MouseEvent.CLICK, playstopF);
 
function playstopF(e:MouseEvent):void{
if(toggle){
flvmovieclip.stop();
} else {
flvmovieclip.play();
}
toggle=!toggle;
}