Groups | Blog | Home
all groups > macromedia flash flashcom > march 2005 >

macromedia flash flashcom : NetConnection status not returned?


carlsz
3/23/2005 7:15:32 PM
Hello:

I am trying to establish a new NetConnection inside of a method of a
mx.screens.Form subclass. Unfortunately it seems that my status method never
gets called. Has anyone had any experience creating a NetConnection in a
method call of a class? Here is my code:

import mx.screens.Form;

class util.Load extends Form {

private var app_nc:NetConnection = null;

public function init():Void {
super.init();
addEventListener("reveal", onReveal);
}

public function onReveal():Void {
initConnection();
}

public function initConnection():Void {
app_nc = new NetConnection();
app_nc.onStatus = netConnStatus;
app_nc.connect("rtmp://127.0.0.1:1111/admin", "admin", "password");
}

public function netConnStatus(info:Object):Void {
trace(info.code);
}
}


Any insight would be appreciated.

TIA,
Carl

jstoneman2004
7/22/2005 12:00:00 AM
I am having the exact same problem. I have a class that has a method that is
attempting to create a NetConnection object and it won't play. Did you ever
get resolution to this problem?

Thanks,

Jeff
AddThis Social Bookmark Button