publish problem
I have a netstream publish problem on the client side...the first time I call a custom event function which connects the netstream everything works fine but when i call the function a second time it dies silently ...however if i use a button click instead of a custom event function then the netstream connects properly here is the problem code
private function setStream(e:SendStreamEvent):void {
trace("rePubID = "+rePublishID1);
if (rePublishID1==0 ) {
trace("publish success"+e.num1[0]);
stream0.publish(e.num1[0],"live");
dispatchEvent(new DefStreamEvent("TYPE_DEFSTR",false,false,e.num1[0]));
//con1.removeEventListener("TYPE_STREAMNUM",setStream);
} else if (rePublishID1==1 ) {
stream0.publish("private","live");
dispatchEvent(new DefStreamEvent("TYPE_DEFSTR",false,false,"private"));
//pub = new NewPublisher(nc2,con1);
} else if (rePublishID1==2) {
stream0.publish(e.num1[0],"live");
dispatchEvent(new DefStreamEvent("TYPE_DEFSTR",false,false,e.num1[0]));
}
