Skip to main content
Participant
Jun 17, 2023 8:36 AM UTC
Question

button on imported video

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

kglad
Community Expert
Community Expert
Jun 17, 2023 2:01 PM UTC

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?

 

 

Translate
Ollie WAuthor
Participant
Jun 18, 2023 5:51 AM UTC

yes that video is flv

 

Translate
kglad
Community Expert
Community Expert
Jun 18, 2023 1:39 PM UTC

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