# Compiler errors Help plz!

**URL:** <https://forum.kirupa.com/t/compiler-errors-help-plz/329923>\
**Category:** Uncategorized\
**Created:** [November 8, 2012, 12:02pm UTC](https://forum.kirupa.com/t/compiler-errors-help-plz/329923 "2012-11-08T12:02:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashnve](https://avatars.discourse-cdn.com/v4/letter/f/f9ae1b/32.png) [@flashnve](https://forum.kirupa.com/u/flashnve)\
**Post date:** [November 8, 2012, 12:02pm UTC](https://forum.kirupa.com/t/compiler-errors-help-plz/329923/1 "2012-11-08T12:02:26Z")

</div>

My first post on this forum. I hope someone can help me fix a small problem. I am trying to edit a small application on Flash.  
But in the compiler i get this error…Scene 1, Layer ‘Layer 1’, Frame 1, Line 5 1119: Access of possibly undefined property onStatus through a reference with static type [flash.net](http://flash.net):NetConnection.

The code is below: If you noticed my mistake please tell me where and how i can fix it . Thank you.

import [flash.net](http://flash.net):NetConnection;  
var nc:NetConnection = new NetConnection();  
nc. onStatus = function(info){  
trace(info.code);  
if(info.code.indexOf(“success”) != -1){  
//do some stuff  
}  
}

nc.connect(“rtmfp://fms//example.test1”);
