# Can't get rid of the f4v

**URL:** <https://forum.kirupa.com/t/cant-get-rid-of-the-f4v/305855>\
**Category:** flash\
**Created:** [March 4, 2010, 3:46pm UTC](https://forum.kirupa.com/t/cant-get-rid-of-the-f4v/305855 "2010-03-04T15:46:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davec](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@davec](https://forum.kirupa.com/u/davec)\
**Post date:** [March 4, 2010, 3:46pm UTC](https://forum.kirupa.com/t/cant-get-rid-of-the-f4v/305855/1 "2010-03-04T15:46:52Z")

</div>

My program needs to be able to load an f4v, and then remove it after it finishes playing. However I can’t get the COMPLETE eventListener to do this - I get a ‘1120: Access of undefined property pose’ message at best.

Any ideas?

```auto
import fl.video.VideoEvent;

video.addEventListener(MouseEvent.MOUSE_UP, playVideo, false, 0, true);

function playVideo(evt:MouseEvent):void {
	closeAll();
	var vidConnection:NetConnection = new NetConnection();
	vidConnection.connect(null);
	var vidStream:NetStream=new NetStream(vidConnection);
	vidStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);

	var pose:Video = new Video();
	pose.width=1080;
	pose.height=1920;

	addChild(pose);
	pose.attachNetStream(vidStream);

	vidStream.play("poses/cold.f4v");
	pose.addEventListener(VideoEvent.COMPLETE, noMoreVideo);
}

function noMoreVideo(evt:VideoEvent):void {
	trace("done");
	home.removeChild(pose);
}

function asyncErrorHandler(event:AsyncErrorEvent):void {
	trace(event.text);
}

```
