FORUMS: list search recent posts

Photo Stack swf works in IE but not Firefox

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Emmett Murry
Photo Stack swf works in IE but not Firefox
on Mar 16, 2010 at 3:04:08 pm

Would anyone know why the photo stack flash gallery won't work in Firefox? IE works fine. I'm fairly sure its just a bit of syntax i'm missing, or a compatibility issue.

I am using a .swf file which imports images in using an xm

l file and then displays them as a stack of photos which can then be rotated and looked through.


This is the code i'm using to embed it on the page.




<object id="flashmovie" type="application/x-shockwave-flash" data="/menu_items/gallery_swf/gallery.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6, 0,0,0" width="550" height="400" >
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/menu_items/gallery_swf/gallery.swf" />
<param name="FLASHVARS" value="path=/san/www/somewhere.com/htdocs/home/ProspectiveStudents/Internationa lStudents/afolder/afolderphotos/">
<embed src="/menu_items/gallery_swf/gallery.swf" width="550" height="400" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>





And this is the Actionscript code within the swf, as I think it may be causing the issue


================

MovieClip.prototype.addProperty("onLoad", function () {
return __onLoadHandler__[this];
}, function (f) {
if (__onLoadHandler__ == undefined) {
_global.__onLoadHandler__ = {};
}
__onLoadHandler__[this] = f;
});
Math.easeInQuad = function(t, b, c, d) {
return c*(t /= d)*t+b;
};
Math.easeOutQuad = function(t, b, c, d) {
return -c*(t /= d)*(t-2)+b;
};
Stage.scaleMode = "noScale";
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function() {
nodes = myXML.childNodes;
// ----------------------
// find first image
// ----------------------
if (topimage.length) {
for (var i = 0; i if (nodes[i].attributes.src == topimage) {
var insert = nodes.slice(0, i);
nodes.splice(0, i);
nodes = nodes.concat(insert);
}
}
}
_root.gotoAndStop(2);
};
if (_url.indexOf("http")>-1) {
myXML.load("http://somewhere.com/menu_items/gallery_swf/gallery.php?querystring=" + path);
} else {
myXML.load("gallery.xml");
}
stop();

===========================


I export it as Flashplayer ver 6, and actionscript ver 1.0. Changing versions didn't make it work.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]