Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>So I think I found a way around this by following crayon1's vein of thought and changing how it embeds the flash so that fallback child html can be included. This requires changing two files:</p> <p>JavaScriptFlashGateway.js &amp;</p> <p>piecemaker-main.php (Assuming we're talking about the WordPress plugin)</p> <p>In JavaScriptFlashGateway.js, find this code:</p> <pre><code>function FlashTag(src, width, height) { this.src = src; this.width = width; this.height = height; this.version = '9,0,0'; this.id = null; this.salign = "tl"; this.scale = "noscale"; this.allowScriptAccess = "always"; this.allowfullscreen = "true"; this.bgcolor = 'ffffff'; this.flashVars = null; this.wmode = null; } </code></pre> <p>And change it to this:</p> <pre><code>function FlashTag(src, width, height, fallback) { this.src = src; this.width = width; this.height = height; this.fallback = fallback; this.version = '9,0,0'; this.id = null; this.salign = "tl"; this.scale = "noscale"; this.allowScriptAccess = "always"; this.allowfullscreen = "true"; this.bgcolor = 'ffffff'; this.flashVars = null; this.wmode = null; } </code></pre> <p>Then further down find this line: "FlashTag.prototype.toString = function()"</p> <p>And replace that entire function with this:</p> <pre><code>FlashTag.prototype.toString = function() { var ie = (navigator.appName.indexOf ("Microsoft") != -1) ? 1 : 0; var flashTag = new String(); flashTag += '&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '; if (this.id != null) { flashTag += 'id="'+this.id+'" '; } flashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.version+'" '; flashTag += 'width="'+this.width+'" '; flashTag += 'height="'+this.height+'"&gt;'; flashTag += '&lt;param name="movie" value="'+this.src+'"/&gt;'; flashTag += '&lt;param name="quality" value="high"/&gt;'; flashTag += '&lt;param name="bgcolor" value="#'+this.bgcolor+'"/&gt;'; flashTag += '&lt;param name="scale" value="noscale"/&gt;'; flashTag += '&lt;param name="allowScriptAccess" value="always"/&gt;'; flashTag += '&lt;param name="salign" value="tl"/&gt;'; flashTag += '&lt;param name="allowfullscreen" value="true"/&gt;'; flashTag += '&lt;param name="wmode" value="transparent"/&gt;'; if (this.flashVars != null) { flashTag += '&lt;param name="flashvars" value="'+this.flashVars+'"/&gt;'; } if(!ie) { flashTag += '&lt;object type="application/x-shockwave-flash" '; flashTag += 'data="'+this.src+'" '; flashTag += 'width="'+this.width+'" '; flashTag += 'height="'+this.height+'"&gt;'; flashTag += '&lt;param name="movie" value="'+this.src+'"/&gt;'; flashTag += '&lt;param name="quality" value="high"/&gt;'; flashTag += '&lt;param name="bgcolor" value="#'+this.bgcolor+'"/&gt;'; flashTag += '&lt;param name="scale" value="noscale"/&gt;'; flashTag += '&lt;param name="allowScriptAccess" value="always"/&gt;'; flashTag += '&lt;param name="salign" value="tl"/&gt;'; flashTag += '&lt;param name="allowfullscreen" value="true"/&gt;'; flashTag += '&lt;param name="wmode" value="transparent"/&gt;'; if (this.flashVars != null) { flashTag += '&lt;param name="flashvars" value="'+this.flashVars+'"/&gt;'; } } flashTag += this.fallback; if(!ie) { flashTag += '&lt;/object&gt;'; } flashTag += '&lt;/object&gt;'; return flashTag; } </code></pre> <p>Then in piecemaker-main.php, find this line: "var tag = new FlashTag('{$this->piecemakerSWF}', {$att['width']}+50, {$att['height']}+100, '9,0,0');"</p> <p>And replace '9,0,0' with whatever fallback html you need.</p> <p>Then you're set! Hope this helps :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload