# Problem with NetStream when replayed

**URL:** <https://forum.kirupa.com/t/problem-with-netstream-when-replayed/324404>\
**Category:** flash\
**Created:** [August 18, 2011, 11:22pm UTC](https://forum.kirupa.com/t/problem-with-netstream-when-replayed/324404 "2011-08-18T23:22:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecoolman](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@joecoolman](https://forum.kirupa.com/u/joecoolman)\
**Post date:** [August 18, 2011, 11:22pm UTC](https://forum.kirupa.com/t/problem-with-netstream-when-replayed/324404/1 "2011-08-18T23:22:35Z")

</div>

Scene 1, frame 1 the code is:

```auto
var myConnection:NetConnection = new NetConnection();
myConnection.connect(null);
var my_netStream:NetStream = new NetStream(myConnection);
my_videoo.attachVideo(my_netStream);

```

Scene 1, frame 2 [the frame label is “restart”] the code is:

```auto
stop();
my_netStream.play("videos/natgeoQ1.flv");
 my_netStream.onStatus = function(info) {
           if (info.code == "NetStream.Play.Stop") {
              trace("flv has finished playing");
              my_netStream.close();
              _root.gotoAndPlay(3);}
}

```

etc etc etc

in Scene 4, there’s a button that the user can press to watch again the movie, the button when pressed the following code is executed: \_root.gotoAndPlay(“restart”); and I expected to watch the flv video again (because the first pass was ok!), but I only listen the sound. I don’t know what is wrong here. Do you?
