Transparent swf's

i am placing some swf’s into html pages, and i know in the publish settings on flash you can manually do it but. if they dont transfer or for some reason it isnt working is there some sort of script i can use to force them to be transparent?