I was able to sus where the issue had come from.
Because the Net Stream was not fully init, it was erroring when the camera was being added.
I placed a check in the netstatus function for the NetStream.Connect.Success and ran a function when it was fired eg
private function netStatus(event:NetStatusEvent):void
writeText( "Command - " + event.info.code );
private function setupStream2():void
var cam:Camera = Camera.getCamera();
i know it nots the best way and if some one finds a better way please post it here.