Hi there, I’m getting really wound up by this problem.
I’ve created a .swf to use for the sidebar on my site which gets variables from a PHP file which it uses to display the latest 10 items added to my site portfolio. The PHP sends a string of variables which includes the names, thumbnail URLs and page URLs for each item. The name is displayed underneath each thumbnail, and when you click on the thumbnail it takes you to the page for a bigger view.
I tested everything locally and it worked fine. I’m using relative file paths and the file structure is identical on my local server as it is on my web server.
The webbed version will not load the thumbnails, when viewed in Firefox, but it will do so in IE and Opera. The names and links work fine, it’s just the images. It appears to load them, but they don’t display.
The Actionscript is as follows:
// The LoadVars object for loading the data.
var vars:LoadVars = new LoadVars();
// When the LoadVars object receives the data, put it in the text field.
vars.onLoad = function():Void {
_root.itemsbox1.container1.image.loadMovie(this.image1);
// And so on 1 through 10.
_root.itemsbox1.namebox_mc1.namebox.text = this.name1;
// And so on 1 through 10.
_root.itemsbox1.setMask(_root.mask_mc);
}
// Load the PHP.
vars.load("portfolio_index_latest.php");
The PHP outputs a string like: &image1=images/thumbnails/thumbnail.jpg&url1=portfolio_item1.php&name1=ItemName … etc.
Help with this would be greatly appreciated, I’ve been looking for hours for a solution.
It’s currently up at http://www.darkreavers.co.uk, compare the scrolling panel on the left in IE/Opera with it in Firefox.
Cheers.