Например так:
var html_st = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="MyStorageSWF" width="1" height="1" ';
html_st += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">';
html_st += '<param name="movie" value="MyStorage.swf" />';
html_st += '<param name="quality" value="high" />';
html_st += '<param name="allowScriptAccess" value="sameDomain" />';
html_st += '<embed src="MyStorage.swf" quality="high"';
html_st += 'width="1" height="1" name="MyStorageSWF" align="middle"';
html_st += 'play="true" loop="false" quality="high" allowScriptAccess="sameDomain"';
html_st += 'type="application/x-shockwave-flash"';
html_st += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
html_st += '</embed></object>';
var div_st = document.createElement('div');
div_st.style.position = 'absolute';
div_st.style.left = '-10px';
div_st.style.top = '-10px';
div_st.style.overflow = 'hidden';
div_st.innerHTML = html_st;
document.body.insertBefore(div_st, document.body.firstChild);
movie = getMovie('MyStorageSWF');
Хочу заметить, что сам флеш определяется %)