∟Outdated: Playing Flash as "embed" Elements on IE 8
This section provides a tutorial example on how IE 8 renders Flash files specified in the 'src' attribute of an 'object' element.
To see how IE handles the Flash provided in the "src" attribute of
an "embed" element, I opened object_swf.html created in the previous section with IE 8,
and got a warning message first,
"To help protect your security, Internet Explorer has restricted
this webpage from running scripts or ActiveX controls that
could access your computer. Click here for options..."
in the information bar.
I clicked the warning message and selected the "Allow Blocked Content..." option.
The "Security Warning" dialog box showed up saying:
"Allowing active content such as script and ActiveX controls
can be useful. However, active content might also harm your computer.
- Are you sure you want to let this file run active content?"
I clicked the "Yes" button.
Flash Player ActiveX got executed and I saw
and saw an animation running in all 3 test sections:
What I learned from the result:
Test 1 shows that IE 8 is smart to use the file name extension to determine the content type
and run the Flash Player ActiveX to render the flash file.
But the flash file is rendered in a display area of predefine default size, because no "width" and "height" provided.
Test 2 shows that IE 8 works correctly with "width" and "height" provided. "type" attribute is optional.
Test 3 shows that IE 8 recognizes type="application/x-shockwave-flash" as Flash content type.
IE 8 also resize the display area based on "width" and "height" attributes.
However, when I uploaded embed_swf.html to my Apache Web server and open it remotely,
IE 8 gave me identical result without any warning messages!
Comparing with Firefox 3, IE 8 behaves ok on rendering flash files provided in "embed" elements.
The only issue is that IE gives 2 warning message before running the plugin if the HTML document is opened as a local file.