Trabla: Flash & html - embed flash .swf into html page example
Solving:
<html>
<head>
<script type="text/javascript">
var flash;
// called by our action script after initialization
function flashInitialized()
{
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// get flash object
flash = isInternetExplorer ? document.all.flash_swf_placeholder : document.flash_swf_placeholder;
}
</script>
</head>
<body>
<object id="flash_swf_placeholder"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="640" height="900">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash_app.swf" />
<embed src="flash_app.swf" name="flash_app"
width="640" height="900"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
No comments:
Post a Comment