# attachVideo NetStream listener

**URL:** <https://forum.kirupa.com/t/attachvideo-netstream-listener/299045>\
**Category:** flash\
**Created:** [October 28, 2009, 11:33pm UTC](https://forum.kirupa.com/t/attachvideo-netstream-listener/299045 "2009-10-28T23:33:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggalan](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@ggalan](https://forum.kirupa.com/u/ggalan)\
**Post date:** [October 28, 2009, 11:33pm UTC](https://forum.kirupa.com/t/attachvideo-netstream-listener/299045/1 "2009-10-28T23:33:11Z")

</div>

im attaching the video

```auto

this.my_video.attachVideo(stream_ns);

```

how can i add a listener like the MovieClipLoader property :

```auto

var oListener:Object = new Object();
this.createEmptyMovieClip("mClip",this.getNextHighestDepth());
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(oListener);//important this is after the MovieClipLoader

oListener.onLoadInit = function(mClip:MovieClip):Void {
    trace(mClip+" initialized");
};

mcl.loadClip("http://www-as.harvard.edu/chemistry/trop/img/NASA_Logo.gif",mClip);

```
