• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Video listener

Participant ,
Apr 17, 2018 Apr 17, 2018

Copy link to clipboard

Copied

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

TOPICS
ActionScript

Views

345

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 17, 2018 Apr 17, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 19, 2018 Apr 19, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 19, 2018 Apr 19, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines