Skip to main content
Participant
August 1, 2013
Question

How to loop my video to specific frame without button (AS3)

  • August 1, 2013
  • 1 reply
  • 420 views

So I created a game. The trouble is, my game has 8 end-case scenarion. 7 of those ended with a game over. However, before the ended to the "game over" video, they will play a video (each of those 7 play different video). After each scenarion play their own scenario video, all those 7 scenarios will be ended on the SAME "game over" video. Is there any code so my .fl loop to the game over frame without have to pressing a button?

Note: To help you understands and easy you helps me. Use this scenario

Scenario1-pregameovervideo: Frame 1

Scenario2-pregameovervideo: Frame 2

Scenario3-pregameovervideo: Frame 3

Scenario4-pregameovervideo: Frame 4

Scenario5-pregameovervideo: Frame 5

Scenario6-pregameovervideo: Frame 6

Scenario7-pregameovervideo: Frame 7

(If of those 7 scenarions planned to loop to frame8 after each scenario video finished without any button)

gameover: Frame 8

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
August 1, 2013

You should be able to assign an event listener to detect when the video is COMPLETE and have its event handler function use a gotoAndStop(8) command.  How you implement that listener depends on how you implement the video(s).