# Help loading external video in flash

**URL:** <https://forum.kirupa.com/t/help-loading-external-video-in-flash/326788>\
**Category:** Uncategorized\
**Created:** [January 12, 2012, 10:34am UTC](https://forum.kirupa.com/t/help-loading-external-video-in-flash/326788 "2012-01-12T10:34:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnash](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dnash](https://forum.kirupa.com/u/dnash)\
**Post date:** [January 12, 2012, 10:34am UTC](https://forum.kirupa.com/t/help-loading-external-video-in-flash/326788/1 "2012-01-12T10:34:07Z")

</div>

Hello,

Basically I’m trying to come up with how to load an external movie located in the same folder as the flash  
file at various points of an SWF, but I’m not sure if this can be done.

I’ve managed to load it using the following code (at frame 203 for example),

stage.displayState = StageDisplayState.FULL\_SCREEN;

var connection:NetConnection = new NetConnection();  
var stream:NetStream;  
var video:Video = new Video(1280,720);  
var metaObj:Object = new Object();

function onMetaData(data:Object):void  
{

}

connection.connect(null);  
stream = new NetStream(connection);  
stream.client = metaObj;  
metaObj.onMetaData = onMetaData;  
video.attachNetStream(stream);  
addChild(video);  
stream.play(“review.mp4”);  
video.x = 0;  
video.y = 150;

- The problem with this is unless i put stop(); in the Script it keeps repeating the swf from the start.  
Is there a way I can load this movie, stop the swf then continue the swf from that point after the movie  
has finished?

Any help at all would be appreciated! Flash is not my strong point…
