LuisNeighbur / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

SWFObject draw flash, even when the file could not be found (404 status returned) #525

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the flash file is not found on the server (for example, the returned 
status 404), SWFObject must not carry out their work on replacement of an 
alternate block.

For example:

<code>
<script type="text/javascript"><!--

swfobject.embedSWF(                             '/broken-path-to.swf', 
    'swf-placeholder', 
    '240', 
    '400', 
    '9.0.0'
);

--></script>

<div id="swf-placeholder">
    <a href="http://example.com/" target="_blank">
        <img src="/alt-image.gif" width="240" height="400" alt="Alt gif-banner" />
    </a>
</div>

</code>

Original issue reported on code.google.com by myadzel.ru@gmail.com on 10 Dec 2010 at 2:39

GoogleCodeExporter commented 9 years ago
This is not considered a bug.

It is up to the developer to ensure their files are available for the page just 
like any other asset such as an image. SWFObject's job is to check if a certain 
required version of the Flash player is available, and if so write the <object> 
block to the page. The rest is up to the browser ,and is not in SWFObject's 
control. 

Original comment by aran.rhee@gmail.com on 10 Dec 2010 at 7:02