# Main swf loading multiple swf's containing Netstream video clips?

**URL:** https://forum.kirupa.com/t/main-swf-loading-multiple-swfs-containing-netstream-video-clips/324733
**Category:** flash
**Created:** [September 6, 2011, 9:21am UTC](https://forum.kirupa.com/t/main-swf-loading-multiple-swfs-containing-netstream-video-clips/324733 "2011-09-06T09:21:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MikeModano](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@MikeModano](https://forum.kirupa.com/u/MikeModano)
#### Post date: [September 6, 2011, 9:21am UTC](https://forum.kirupa.com/t/main-swf-loading-multiple-swfs-containing-netstream-video-clips/324733/1 "2011-09-06T09:21:30Z")

</div>

Hi,

I’m in a bit of a headache.

I have this Main swf that is supposed (via buttons) load external swf’s. These external swf’s play single videos with code that follows ie:

var nc:NetConnection = new NetConnection();  
nc.connect(null);  
var ns:NetStream = new NetStream(nc);  
ns.play(“Clip3.flv”);

var myVideo:Video = new Video(1280,720);  
myVideo.attachNetStream(ns);  
addChild(myVideo);

When this video clip has ended I want the main swf to be loaded again. Either by going by time or by buffering. I’ve been googling around for a couple of hours, trying to find a good solution but I cant seem to solve this problem. Please can someone help me? 🙂

Kindest Regards!
