all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

Using action script to detect end of a Streaming .FLV movie?


Using action script to detect end of a Streaming .FLV movie? mcjimbo
11/19/2004 9:53:23 PM
flash actionscript:
Hi everyone, I'm newbie to Flash so bear with me. For those of your with Flash
MX 2004 Professional it has a great template for Bandwidth Selection and
Streaming of .FLV movies. To get to the template i'm talking about, on the PC
version at least go to the menu 'File' then 'New' then click the the
'Templates' tab, then click 'Video' then 'Bandwidth Select'. My problem is, I
some how need to be able to open a URL (new browser window) when the movie
ends. I know how to do this when I import a movie in the stage of a Flash
document, but not when streaming an FLV. I take it I need to add some sort of
action script that determines when the movie's finished.... I'm just not sure
how to go about this... or whether its even achievable? Can anyone help me out
or attach some code? As i'm a newbie if you could look at the template and
explain to me how i'd alter it, i'd appreciate it. Thanks in advance James
if I import the entire movie into the
Re: Using action script to detect end of a Streaming .FLV movie? Rothrock
11/19/2004 11:32:45 PM
There are two issues here, there is a documented way to check if a FLV has
reached the end, but it doesn't seem to work consistently. Check out
Help->Using Components?>Component Dictionary->Media Components->Media.Complete.
This is how it should work. Depending upon how you are creating your FLVs, it
will either work or it won't. If it doesn't, then either you haven't done it
right or it just isn't working. (Sorry that I can't be more helpful to a
newbie!) Check that out first and post back if you have more questions.
AddThis Social Bookmark Button