Hey guys,

I need to create a live flash encoder that can encode to akamai (and need to inject cuepoints aswell).

First step first, I'm working off this example code ( http://www.adobe.com/devnet/flashcom..._receiver.html ) but it doesn't allow for username and password for the server. Could anyone give me a hint to fix this one?

Cheers

Code from project:
Code:
startstop_pb.enabled = false;

connect_pb.onRelease = function(){
	if(this.label == "Connect"){
		status_txt.text += "Connecting..." + newline;
		this.label = "Disconnect";
		nc.connect(rtmp_txt.text);
		
	} else {
		status_txt.text += "Disconnecting." + newline;
		this.label = "Connect";
		nc.close();
	}
}

nc = new NetConnection();
nc.onStatus = function(info) {
	status_txt.text += "NC.onStatus> info.code: " + info.code + newline;
	if (info.code == "NetConnection.Connect.Success") {
		status_txt.text = "Connected to " + this.uri + newline;
		startstop_pb.enabled = true;
		createNetStream(this);
	}
}

createNetStream = function(nc){
	ns = new NetStream(nc);
	ns.onStatus = function(info) {
		status_txt.text += "NS.onStatus> info.code: " + info.code + newline;
	}
	mycam = Camera.get();
	mycam.setQuality(25600, 0);
	mymic = Microphone.get();
	mymic.setRate(11);
	ns.attachVideo(mycam);
	ns.attachAudio(mymic);
	myvid.attachVideo(mycam);
}

startstop_pb.onRelease = function(){
	if (this.label == "Start Broadcast"){
		status_txt.text += "Starting broadcast" + newline;
		this.label = "Stop Broadcast";
		ns.publish(streamname_txt.text, "live");
	} else {
		status_txt.text += "Stopping broadcast" + newline;
		this.label = "Start Broadcast";
		myvid.attachVideo(null);
		myvid.clear();
		ns.close();
	}	
}