Detect end of flash video

I want to create a splash window that plays a flash video, then disappears.  I can make the splash window appear and play the video, but if I install a "got to URL" keyframe after the video, that keyframe executes immediately.
JDL_TechAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

blue-genieCommented:
are you using a FLVPlayback component?
use event listener to listen for complete status then call your goto URL bit.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Aneesh ChopraCommented:
Hi,

put a stop() function on the frame where you want to stop the swf while video is playing and use the  "complete" event of FLVPlayback component to play the next frame on movie completion.

here I have uploaded a sample FLA for you..
http://s63.yousendit.com/d.aspx?id=3TP5GV9XG7OIH0WJIOHGEI504V


1.
"FLVPlayback" class support an event "complete" which can be used.
sample FLA shows how to attach a listner object to listen oncomplete event.
It shows "movie finished" message on movie complete.

here is the code for reference
----------
import mx.video.*;
my_FLVPlybk.contentPath = "myVideo.flv";
//
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void
{
     movieComplete();
};
my_FLVPlybk.addEventListener("complete", listenerObject);
//
movieComplete = function ()
{

     movieState.text = "movie finished";
};
---------

2.
yes, you can control how much to buffered to play.. if you select the "FLVPlayback" component instance in FLA and see the parameters tab,
there is a parameter "bufferTime", set the value here for buffering...


Rgds
Aneesh
0
Aneesh ChopraCommented:
my comment is just extended version of whatever blue-genie posted...

Rgds
Aneesh
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.