# Interupt playing of current video and going to other one

**URL:** https://forum.kirupa.com/t/interupt-playing-of-current-video-and-going-to-other-one/291490
**Category:** Uncategorized
**Created:** [June 30, 2009, 1:53pm UTC](https://forum.kirupa.com/t/interupt-playing-of-current-video-and-going-to-other-one/291490 "2009-06-30T13:53:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)
#### Post date: [June 30, 2009, 1:53pm UTC](https://forum.kirupa.com/t/interupt-playing-of-current-video-and-going-to-other-one/291490/1 "2009-06-30T13:53:20Z")

</div>

If I have a playing video and I click on the next button for example, what do I need to do exactly?

(this question also applies when currently playing video comes to an end and the next video comes in order)

if I say:

```auto
netStream.close();

```

and then:

```auto
netConnection = new NetConnection();
netConnection.connect(null);
netStream = new NetStream(netConnection);

sndTransform = new SoundTransform();

video = new Video();
addChild(video);
video.attachNetStream(netStream);
netStream.play("myVideo.flv");

```

is that good approach and/or do I need to do something else?

I dont quite understand this video processes 😛
