开发者

gotoAndPlay(1) when a video is completed

开发者 https://www.devze.com 2022-12-10 20:58 出处:网络
I am trying to create a video that can be streamed on a website. The video started with a screen grab of the video on f开发者_运维技巧rame one. This has the action on stop();. When this screengrab is

I am trying to create a video that can be streamed on a website. The video started with a screen grab of the video on f开发者_运维技巧rame one. This has the action on stop();. When this screengrab is clicked, gotoAndStop(2); is fired and the timeline moves to frame 2 and the video starts to stream. All is well... Except from when the video finishes...

When the video finishes I have tried using the code

on (complete) {
    gotoAndPlay(1);
}

To go back to the origonal screen grab on frame one but it doesnt seem to budge. Does anyone have any idea why it is doing this or how to solve it?


Try calling the method on your root, as the main scene timeline will not be in the scope of your method.

on (complete) {
    _root.gotoAndPlay(1);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消