Skip to main content
rickg1949
Known Participant
April 17, 2018
Question

Video listener

  • April 17, 2018
  • 1 reply
  • 534 views

Trying to add a goToAndStop event when a video finishes playing in AS3 for an AIR application.  Building a simple DVD-like video player with animated menu page.  Also need to return to first frame if no interaction happens on menu for 30 seconds.

Thanks in advance. rg

This topic has been closed for replies.

1 reply

Robert Mc Dowell
Legend
April 17, 2018

Are you using NetStreaM?

if yes, check NetStream.Play.Stop on the NetStream Handler the use a Timer class to run a function after 30s

rickg1949
rickg1949Author
Known Participant
April 19, 2018

I saw a library of Netstream code, but to be honest my lack of coding experience made it a mystery. That makes a difference as to where I start: HTML5 canvas or an AC3 AIR app for desktop, correct?  I have tried this both ways and can get most of the interaction to do what I want except the listener and timer events.

Since DVD's are fading away, I would think that this is a commonly asked for interface for interactive video playback.

rickg1949
rickg1949Author
Known Participant
April 19, 2018

I have a complete interface created in HTML5 canvas that I like the best. Everything works perfectly except it requires the user to click the "home" button to get back to the menu when a video finishes instead of automatically dropping back to menu frame.

Also needing the menu to close and return to looping video on frame one after 30 seconds of no action.  I tried a timer event that worked, but it then affected all my movies, stopping them after 30 seconds.  Even though movies are on subsequent frames.  Maybe a "timer stop" snippet is required when movie_btn's are clicked?

thanks for help everyone.

rg