Stuff that works locally wont work properly on a webserver..

  • cal
  • Born
  • Born
  • cal
  • Posts: 4

Post 3+ Months Ago

Hi,

Ive made a flash photo gallery here http://www.bassireland.net/photos.htm

When I run the flash file locally it works fine, but when I upload it to the web strange things are happening. Only the second button: "2. BASS Club nights" is working, im at a loss as-to why. Can anyone help? Thanks
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

Your problem is here

Code: [ Select ]
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="900" height="500">
        <param name="movie" value="file:///D|/Share/Photo/New/xmlphotogallery.swf">
        <param name="quality" value="high">
        <embed src="file:///D|/Share/Photo/New/xmlphotogallery.swf" quality="high" p
  1. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="900" height="500">
  2.         <param name="movie" value="file:///D|/Share/Photo/New/xmlphotogallery.swf">
  3.         <param name="quality" value="high">
  4.         <embed src="file:///D|/Share/Photo/New/xmlphotogallery.swf" quality="high" p


It's looking for the flash file on your hard drive. You need to upload the flash file to the website, and change the links to where the file is located.
  • cal
  • Born
  • Born
  • cal
  • Posts: 4

Post 3+ Months Ago

Thanks for your reply, I fixed that but I'm still getting strange behaviour, the "BASS on Pana" gallery will not appear, but when i run the .swf on my local machine it works fine.....

The gallery buttons have the following code behind them, with the xml file name changing based on which one is selected

on (press, release) {
xmlvar = "xmlphotopana.xml";
thumbnails.clear();
call("code");
}

This is the 'code' frame

if (xmlvar!=null) {
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
// portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
spacing = 80;
for (i=0; i<numimages; i++) {
picHolder = this.firstChild.childNodes[i];
thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
thumbHolder._x = i*spacing;
thumbLoader = thumbholder.createEmptyMovieClip("thumbnail_image", 0);
thumbLoader.loadMovie(picHolder.attributes.thmb);
thumbHolder.title = picHolder.attributes.title;
thumbHolder.main = picHolder.attributes.main;
thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
myPhoto.load(xmlvar);
}

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 5 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.