This section provides a tutorial example on how IE 8 requires that the SWF file to be specified in an 'object.param' sub element. IE can also read other parameters specified in the 'param' sub elements.
To see how IE handles parameters in the "object" element
I opened mp3player_object_param.html created in the previous section with IE 8 as a local file.
After passing security warning messages, I got this result:
What I learned from the result:
IE requires the SWF file to be specified in the
object.param[@name="movie"] sub element. Test 3 fails to play because of this rule.
IE is not reading the SWF file specified in the
object[@data] attribute. This is also why test 3 fails to play.
The difference between test 3 and 4 is caused by the
Looking at both results and Firefox and IE, now we know why
mp3player templates specifies the SWF file in two places:
object[@data] attribute and the object.param[@name="movie"] sub element -
to make both Firefox and IE happy.
If you use "object.param" sub elements to specify Flash application
specific parameters, you must specify the SWF file
in the object.param[@name="movie"] sub element to make IE happy.
You must also specify the SWF file in the object[@data] attribute
to make Firefox happy.