# Stop external FLV from loading on exit frame

**URL:** <https://forum.kirupa.com/t/stop-external-flv-from-loading-on-exit-frame/64278>\
**Category:** Uncategorized\
**Created:** [September 14, 2004, 8:06pm UTC](https://forum.kirupa.com/t/stop-external-flv-from-loading-on-exit-frame/64278 "2004-09-14T20:06:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![polishbroadcast](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@polishbroadcast](https://forum.kirupa.com/u/polishbroadcast)\
**Post date:** [September 14, 2004, 8:06pm UTC](https://forum.kirupa.com/t/stop-external-flv-from-loading-on-exit-frame/64278/1 "2004-09-14T20:06:01Z")

</div>

I am using the video component player and it is working fine using this code:

```auto

video.setMedia("elements/flv/episode_1.flv", "FLV");

```

The problem is, if someone is playing the video and goes to another part of the flash movie, the video keeps playing or loading in the background. The video image doesn’t show, but i can hear the audio or see in the browser that it is still loading.

How can i kill the video from loading once the playhead moves from the frame that the video player is on (it is sitting on a single frame)? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 4:14am UTC](https://forum.kirupa.com/t/stop-external-flv-from-loading-on-exit-frame/64278/2 "2004-09-15T04:14:51Z")

</div>

A little bit’a bump.

Just looking to find out how to stop an FLV from loading. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 16, 2004, 10:10pm UTC](https://forum.kirupa.com/t/stop-external-flv-from-loading-on-exit-frame/64278/3 "2004-09-16T22:10:17Z")

</div>

have tried video.stop(); and video.close(); which both don’t quite work right. video.stop(); definately stops it from playing, but it continues to stream the FLV in the background. If anyone has suggestions i would love to hear them. Thanks.

---

<div class="post-metadata">

**Author:** ![cfla](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@cfla](https://forum.kirupa.com/u/cfla)\
**Post date:** [May 28, 2008, 4:37pm UTC](https://forum.kirupa.com/t/stop-external-flv-from-loading-on-exit-frame/64278/4 "2008-05-28T16:37:02Z")

</div>

hi!  
thank you for posting this, it seems it would be the answer to my problem (which is that the audio from the flv keeps playing after exiting the frame it’s in, just like the original post described).  
i just don’t know how to implement what you describe, for example, when you say:

"making a simple player with the netstream component"  
i have no idea what you mean by that.  
could you possibly break it down in step-by-step instructions?

note: what i have on my stage is an instance of a movie clip symbol which contains an FLV\_playback component (which has the flv indicated in “source”, under parameters).

also, when you say “i created a video object” - how do you do that? how is that different from bringing an flv\_playback component from the library?  
then you say: "then i created a play/pause button. I attached this code:"  
where does the code go? in the frames within the button symbol, or in the scene where the button is placed?

as you can see, i’m a total novice.  
i’d so appreciate your help!  
thank you in advance.  
c

[quote=polishbroadcast;655368]This goes on the frame with the player:

```auto
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream= new NetStream (netConn);

```

video

```auto
.attachVideo (netStream);
netStream.setBufferTime(10);
vfile="

```

your\_url/yourvideofile.flv

```auto
";
netStream.play(vfile);

```

I created a video object, put it on the stage and gave it an instance name of “video”. Then i created a play/pause button. I attached this code:

```auto
on (release) {
    

```

\_parent.netStream.pause();

```auto

    this.play();
    mc_playstatus.play();
    }

```

Apparently the

```auto
netStream.pause();

```

command pauses and unpauses the video alternately, each time it is issued. It isn’t fancy, but my videos stop streaming when i move to another part of the site. Whew![/quote]
