Hello,
I have a .fla with a video embedded on the timeline.
I have a actions layer with a stop function in the first frame. I then have a layer for my 2 buttons (Play and Stop)…they have instance names of bplay and bstop respectively. Then I have the layer with my embedded video. The video has a instance name of “syd”. My teacher then gave us the following code and told us to put it in the first frame of our buttons layer to control the buttons.
bstop.onRelease = function() {
syd.stop();
};
bplay.onRelease = function() {
syd.play();
};
I did and it doesnt work. With the stop action in the first frame of the actions layer, the video doesnt play. When I remove the stop function, the video begins to play and the buttons don’t work. What I would ideally like to have is the video load without playing, giving the user the option to start or stop the video when desired. Any help will be greatly appreciated. Thank you! :luigi: