As the site will be totally in flash, there is no use of JavaScript required. So, what is the best way to embed a SWF file into a web page without using JavaScript. And why do you consider it to be the best one?
views:
40answers:
3
+2
A:
You can use the Satay Method:
<!--[if IE]>
<object
type="application/x-shockwave-flash"
data="movie.swf"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="200"
height="400">
<param name="wmode" value="opaque" />
<param name="movie" value="movie.swf" />
</object><![endif]--><!--[if !IE]><!-->
<object
type="application/x-shockwave-flash"
data="movie.swf"
width="200"
height="400">
<param name="wmode" value="opaque" />
<param name="movie" value="movie.swf" />
</object><!--<![endif]-->
sthg
2010-01-13 06:43:53
A:
Another example here: http://knowhow.dgx.cz/embedding-flash/ Contains hacks for crappy IE.
Ondra Žižka
2010-01-13 06:44:17
A:
I would assume that the embedding code used by SWFObject is tested to be working on as many browsers as possible. Just skip the steps with javascript.
kkyy
2010-01-13 06:51:28