JSFiddle - React, Tailwind, and code Playground
by oroce
HTML
<script src="http://temp.sls.hu/temp/public/js/swfobject.js"></script>
<div>alma
<div id="FontListSWF" style="width:200px;height:200px"></div>
</div>
JavaScript
try{
swfobject.embedSWF("http://temp.sls.hu/temp/public/swf/FontList.swf", "FontListSWF", "100", "100", "9.0.0", "", null, {
allowScriptAccess: "always",
movie:"http://temp.sls.hu/temp/public/swf/FontList.swf"
});
}catch(x){
console.log( "error", x );
}
( isFlashRunning = function( run ){
var flash = $( "#FontListSWF" )[0];
console.log( "isFlashRunning", flash, flash.capture );
if( flash && typeof flash.capture !== "undefined" ){
console.log( "got you flash");
}
else if( run === 0 ){
console.log( "end" );
}
else{
console.log( "settimeout" );
window.setTimeout( isFlashRunning, 1000 * ( 4 - run ), run - 1 );
}
})(3)