Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-05-2007, 04:40 PM   #1
nickchrisless
Registered User
 
Join Date: Sep 2007
Posts: 46
Default MP3 Player vs. Video Player

Hi guys,

I've created custom video players and custom MP3 players in the past numerous times, but I've never know the code that's equivalent to "onSoundComplete" for the video player.

I'd like to implement actionscript to create a function that checks to see if the video is complete, then if it is, the function takes action (say... nextFrame).

With my MP3 player, no problem, it's just ... player_mc.onSoundComplete = function().

I get that... I was just wondering would could be used when it's a video file, and not an audio file that you're checking the complete status of. Just need the call ... thanks!
nickchrisless is offline   Reply With Quote
Old 10-05-2007, 04:57 PM   #2
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073
Default

http://livedocs.adobe.com/flash/8/ma...=00003537.html

If you're using NetStream, then the onStatus handler (NetStream.Play.Stop) indicates that the playback has stopped, thus the video is finished playing...

http://livedocs.adobe.com/flash/8/ma...=00002563.html

This post might also help...

http://www.actionscript.org/forums/s...06&postcount=6

Last edited by atomic; 10-05-2007 at 06:18 PM. Reason: Typo... NetStream.Play.Stop instead of NetStream.Play.Start
atomic is offline   Reply With Quote
Old 10-05-2007, 05:33 PM   #3
nickchrisless
Registered User
 
Join Date: Sep 2007
Posts: 46
Default

Big big help, that's exactly what I was looking for. I apologize for the inconvenience but even with the internet it can be tough to find the name of what you're searching for.

Many thanks!
nickchrisless is offline   Reply With Quote
Old 10-05-2007, 06:17 PM   #4
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073
Default

Grrreat!
atomic is offline   Reply With Quote
Old 10-05-2007, 06:36 PM   #5
mrtabs
Registered User
 
Join Date: Oct 2007
Posts: 14
Default

Quote:
Originally Posted by nickchrisless View Post
Hi guys,

...
I get that... I was just wondering would could be used when it's a video file, and not an audio file that you're checking the complete status of. Just need the call ... thanks!
Hi,
Did you see my post?
http://www.actionscript.org/forums/s....php3?t=149272
I think that you wanted to do the same, right? play a video and get the end event...
What's the difference between implement this using NetStream and VideoDisplay? or there is no relation??

thanks
mrtabs is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mp3 player issue. ggreiner9 ActionScript 2.0 1 06-05-2007 06:57 AM
Action Script Video Player issues Nemui ActionScript 2.0 0 02-20-2007 06:20 PM
Some Flash Video Converter Tools Compare terry117 Detention 7 05-18-2006 02:08 AM
Custom Video Player Issues jamesferguson Other Flash General Questions 0 09-01-2005 12:16 PM


All times are GMT. The time now is 04:32 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.