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
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
Don't see what you're looking for? Try a search.
|