Lo que te conviene es poner el código del swf dentro de un div y modificar todo su innerHTML.
Un ejemplo: 
 Código PHP:
    <div id="player">
  <object width="539" height="433"><param name="movie" value="http://www.youtube.com/v/R4en3Aegu_s?fs=1&hl=es_ES"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/R4en3Aegu_s?fs=1&hl=es_ES" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="539" height="433"></embed></object>
</div> 
    
  Y luego usamos una función de este tipo para cambiar el innerHTML: 
 Código PHP:
    <script type="text/javascript">
function changeCamara(code){
    var vid='<object width="539" height="433"><param name="movie" value="http://www.youtube.com/v/'+code+'?fs=1&hl=es_ES"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'+code+'?fs=1&hl=es_ES" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="539" height="433"></embed></object>';    
    document.getElementById('player').innerHTML=vid;
}
</script> 
   
  Una adaptación de eso debería servirte