# Problem with Video Playback

**URL:** <https://forum.kirupa.com/t/problem-with-video-playback/218055>\
**Category:** flash\
**Created:** [March 4, 2007, 6:10pm UTC](https://forum.kirupa.com/t/problem-with-video-playback/218055 "2007-03-04T18:10:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cytech](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@cytech](https://forum.kirupa.com/u/cytech)\
**Post date:** [March 4, 2007, 6:10pm UTC](https://forum.kirupa.com/t/problem-with-video-playback/218055/1 "2007-03-04T18:10:18Z")

</div>

Hey all,

Quick question… I am placing an “PLAY” arrow on my movie so that the user has to click it before the movie plays, similar to what YouTube might do.

On the root frame I have this code:

```auto

var myConnection = new NetConnection();
myConnection.connect(null);
var myStream = new NetStream(myConnection);
_root.mcVideo.attachVideo(_root.myStream);

```

Very basic and simple… nothing fancy just want to make it work.

Now, I placed an on(release) command within the Arrow that is placed ontop of the playback.

It holds:

```auto

on(release){
    this._alpha=0;
    trace(_root.movie);
    _root.myStream.play(_root.movie);
}

```

Now when I trace the \_root.movie (which was previously loaded) it displays “j.flv” which is the test movie I have in there. The myStream DOES NOT PLAY though.

Now it gets interesting when I remove \_root.movie and replace it with just  
\_root.myStream.play(“j.flv”);

It then plays. It seems like it will not take the movie variable. Which is a bit odd, maybe I have a wrong variable type not sure…

ANY ADVICE is great apprecaited!! 🙂
