# Flash loadMovie with embedded FLV problem...HELP!

**URL:** <https://forum.kirupa.com/t/flash-loadmovie-with-embedded-flv-problem-help/166496>\
**Category:** Uncategorized\
**Created:** [October 20, 2005, 2:11pm UTC](https://forum.kirupa.com/t/flash-loadmovie-with-embedded-flv-problem-help/166496 "2005-10-20T14:11:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtt\_losd2](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mtt\_losd2](https://forum.kirupa.com/u/mtt_losd2)\
**Post date:** [October 20, 2005, 2:11pm UTC](https://forum.kirupa.com/t/flash-loadmovie-with-embedded-flv-problem-help/166496/1 "2005-10-20T14:11:40Z")

</div>

[font=Century Gothic]I have a problem with my flash movie and it is the following if anyone can help me. First of all I have a container flash movie that pulls and xml list of movie names and locations and lists them on that movie (main movie). For now I just have two .swf being loaded to that main movie. The problem is that on in one of those .swf files I am loading an external .flv video and it is playing back perfectly when I initially load that movie for the first time. The problem is that when I load a different .swf and then load that .swf with then .flv in it the a time\_interval text field that I have set up that displays the time is not seemless (meaning seconds are displayed like 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, etc.)

Here is the code that calls the .swf from the main move:  
//plays clicked movie  
this.pageMove = function(url) {  
\_root.\_level1.ns.close();  
unloadMovieNum(1);

```
loadMovieNum(url, 1);

```

}

//This is the .swf with the .flv in it  
var nc:NetConnection = new NetConnection();  
nc.connect(null);  
var ns:NetStream = new NetStream(nc);  
ns.setBufferTime(10);  
myVideo.attachVideo(ns);  
ns.play(“giovanni.flv”); //place the movie name you want to use

//time text  
this.createTextField(“time\_txt”, this.getNextHighestDepth(), 345, 300, 100, 22);  
var time\_interval:Number = setInterval(checkTime, 1000, ns);  
function checkTime(ns:NetStream){  
var ns\_seconds:Number = ns.time;  
var minutes:Number = Math.floor(ns\_seconds / 60);  
var hours:Number = Math.floor(minutes / 60);  
var seconds = Math.floor(ns\_seconds % 60);  
if (seconds\<10){  
seconds = “0”+seconds;  
}  
time\_txt.text = hours+":"+minutes+":"+seconds;  
}

//there are some playback controls under here

Can someone help me!

[/font]
