Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Shockwave in IE and Firefox
tallen73q
#1 Posted : Saturday, 6 June 2009 10:20:04 AM(UTC)
Rank: Member

Joined: 6/06/2009(UTC)
Posts: 7

I have a Shockwave file ( attached ) that plays normally in IE but crops the full size when playing in Firefox. Please advise
File Attachment(s):
elemental.swf (186kb) downloaded 15 time(s).
Roger Martin
#2 Posted : Saturday, 6 June 2009 2:18:10 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,150
Location: Fort Atkinson, WI

The galleryserverpro.config file has three HTML templates for rendering HTML for Shockwave files: 1 for IE 5-9 for Mac, 1 for IE for Windows, and 1 for all other browsers. Both the IE/Win and IE/Mac templates do not specify a scale setting, which I believe causes Flash to scale the animation to fit the dimensions. But the other template specifies a value of "noScale" for the scale property, which causes the file to be shown actual size. This can cause it to be clipped, as it is in your situation.

The fix is to update galleryserverpro.config to specify a different value for the scale property (or just delete it). Open galleryserverpro.config in a text editor (it is in the gs/config directory). Look for this text:

Code:
<mediaObject mimeType="application/x-shockwave-flash">
<browsers>
<browser id="default"
htmlOutput="&lt;object type=&quot;{MimeType}&quot; data=&quot;{MediaObjectUrl}&quot; style=&quot;width:{Width}px;height:{Height}px;&quot; id=&quot;flash_plugin&quot; standby=&quot;loading movie...&quot;&gt;&#x9;&lt;param name=&quot;movie&quot; value=&quot;{MediaObjectUrl}&quot; /&gt;&#x9;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;&#x9;&lt;param name=&quot;quality&quot; value=&quot;best&quot; /&gt;&#x9;&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;&#x9;&lt;param name=&quot;scale&quot; value=&quot;noScale&quot; /&gt; &lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;&#x9;&lt;param name=&quot;salign&quot; value=&quot;TL&quot; /&gt;&#x9;&lt;param name=&quot;FlashVars&quot; value=&quot;playerMode=embedded&quot; /&gt;&lt;p&gt;&lt;strong&gt;Cannot play Flash content&lt;/strong&gt; Your browser does not have the Flash plugin or it is disabled. To view the content, install the Macromedia Flash plugin or, if it is already installed, enable it.&lt;/p&gt;&lt;/object&gt;" />


Notice this section in the middle:
Code:
&lt;param name=&quot;scale&quot; value=&quot;noScale&quot; /&gt;


Either delete it or change it to this:
Code:
&lt;param name=&quot;scale&quot; value=&quot;default&quot; /&gt;


I am not sure why I originally used the noScale value, probably because I didn't want to enlarge or shrink animations. But I should have been consistent across all browsers. I think I will change this to use the default value as I described above in future releases, as it seems to make more sense. Plus, I looked up the properties on the Adobe site, and noScale doesn't even exist (maybe it did at one time).

Let me know if this gives you the desired results.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.