Publish swf using javascript?

Is it possible to publish a swf using javascript with FLASH 8?

i need to have custom flash files and they need to be edited by people who done know flash. so i am thinking of a html form and sending that information thru javascript to flash and then publish the swf with the custom info.

thanks !