?
Solved

removing an flv file after playback is complete

Posted on 2006-04-22
1
Medium Priority
?
1,040 Views
Last Modified: 2008-02-07
playing an flv file using Flash 8 video playback component.  
how do i completely remove/close/unload the flv file when playback has finished?

tried:
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
    // insert event-handling code here
      myFLVplybk.close();
};
myFLVplybk.addEventListener("complete", listenerObject);

where "myFLVplybk" is assigned as the instance name of the FLVPlayback component.

what am i doing wrong?  i want the flv to play until the end, then go disappear.

thanks!
0
Comment
Question by:winstonmortimor
1 Comment
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 16516061
Hi,

Use a dummy flv name as contentPath in complete event, flv will be unloaded.

here is example code:
----------------------
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
    // insert event-handling code here
    myFLVplybk.contentPath="dummy.flv";
};
myFLVplybk.addEventListener("complete", listenerObject);
----------------------

Rgds
Aneesh
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question