[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

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.
0
JDL_Tech
Asked:
JDL_Tech
  • 2
2 Solutions
 
blue-genieCommented:
are you using a FLVPlayback component?
use event listener to listen for complete status then call your goto URL bit.
0
 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now