# Rmtp net connection issue

**URL:** <https://forum.kirupa.com/t/rmtp-net-connection-issue/301506>\
**Category:** Uncategorized\
**Created:** [December 10, 2009, 11:49am UTC](https://forum.kirupa.com/t/rmtp-net-connection-issue/301506 "2009-12-10T11:49:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitroplonker](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nitroplonker](https://forum.kirupa.com/u/nitroplonker)\
**Post date:** [December 10, 2009, 11:49am UTC](https://forum.kirupa.com/t/rmtp-net-connection-issue/301506/1 "2009-12-10T11:49:35Z")

</div>

[COLOR=black][FONT=Courier][URL=“[http://www.willhill.premiumtv.co.uk/streaming/videoEventsList/startDate\_20090415/endDate\_20090416/submit.xml](http://www.willhill.premiumtv.co.uk/streaming/videoEventsList/startDate_20090415/endDate_20090416/submit.xml)”][COLOR=blue]Hi Guys,

I am having a problem when trying to build a video player which connects to a rmtp stream. I have spent ages looking into this and still can’t see where i am going wrong. Here is my code

```php

var video:Video = new Video(320, 240);
addChild(video);

var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.connect("rtmp://fod/flv/2009_04/");

function onNetStatus(e:NetStatusEvent):void
{
    trace(e.info.code)
}

```

I realise this won’t work as is but the problem i am having is that the NetStatusEvent doesn’t do anything. When i try to trace anything in the onNetStatus function nothing happens, no errors no nothing.

please can someone help me out here[/COLOR][/FONT][/COLOR]
