Question : How do I insert something into SWF file after a FLV is done playing?

I hope I'm asking this question the right way. First  Check out this link please:

http://www.consolidatedsmart.com/beta/

Basically, the SWF file plays an FLV movie when it's first loaded.  The FLV movies IS NOT embedded, it is streamed.  Once the 30 seconds movie is done playing, the screen just goes blank.  How can insert something else there?  At least a picture so once the movie stops playing, instead of just a black screen the user can see a picture.  How about another SWF file?  I have a little slide show that I would love to be able to insert after the movie is done playing.

Thanks for your help.

Answer : How do I insert something into SWF file after a FLV is done playing?

below is the complete code, and your FLVPlayback instance name must be "my_FLVPlybk"

or you can replace all occurance of "my_FLVPlybk" in code below with your FLVPlayback instance name.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
 
my_FLVPlybk.source = "stella_hop.flv";
 
 
 
my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, cp_listener);
function cp_listener(ev:VideoEvent):void {
	trace(ev);
	// hide video Player instance:
	ev.target.visible = false;
	
	// call function to load external SWF:
	loadExternalSwfNow();
}
 
function loadExternalSwfNow() {
	var request:URLRequest = new URLRequest("http://www.consolidatedsmart.com/beta/movies/main_pic.swf");
	var loader:Loader = new Loader();
	loader.load(request);
	addChild(loader);
}
Open in New Window Select All
Random Solutions  
 
programming4us programming4us