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: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: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”);