Stop my video from Automatically Playing

Hi,

I’ve imported an flv video onto the first frame of a layer using flash, The video is hosted on my server and is linked, as opposed to being embedded on the time line.

I have working play and pause buttons which control the playback of the video, but i just want the video only to play when a user clicks one of these buttons.

I’m using actionscript 2.0 and the following code on my buttons…

The play button…

on (release) {
vid.play();
}

…and for the pause button…

on (release) {
vid.pause();
}

The video instance name is “vid”

Any help would be much appreciated, thanks.

Michael.

Can’t you set autoplay to false in the properties of the FLV Player?

I’m not 100% sure on all the options right now, but I think that is available, isn’t it?

I’ll look into it now, thanks for you advice.

If the autoplay option is not there and these are working

on (release) {
 vid.play();
}

on (release) {
 vid.pause();
}

Then I would think that vid.stop(); or vid.pause(); on the first frame of the movie would keep it from playing. :slight_smile: