Hi guys,
I used the codes shown in XML Thumbnail Photo Gallery, it works fine on my computer. But When i upload the website, my picture won't come out after the 3rd image, the 4th 5th 6th 7th is all blank, but my 11th 12th and 13th images can appear.
My total images are 13 images. Only the 1st 3, 1st 2nd 3rd and the last 3 11th 12th and 13th can appear. Anyone of u know the reason?
It works fine on my computer though, but when i upload my files to a hosting site, it start giving me problems.
Thanks alot if anyone can help me.
pls help
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = ;
description = ;
thumbnails = ;
total = xmlNode.childNodes.length;
for (i=0; i
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("image.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
}
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000); Using Moodle: html editor randomly fails to load:: Aug 17, 2007 Now the HTML editor works again (but you can't access the course file area I really want to solve this problem as it has kept us from http://moodle.org/mod/forum/discuss.php?d=78134HOME |
scroll_speed = 5;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-20)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
You definitely want to create all your images with the same program. I have run into problems with JPG files not showing up when they are created, let's say in Illustrator vs. Photoshop. Your best bet is to create your graphics in either Photoshop or Fireworks through the Save For Web window. I have found that PNG files work the best in Flash files and they must be sized the exact size you want them to show up in your Flash file. Otherwise the edges will slightly distort and become aliased.
:ko:
One.jpg
test
Onethumb.jpg
Two.jpg
test
Twothumb.jpg
Three.jpg
test
Threethumb.jpg
Four.jpg
test
Fourthumb.jpg
Five.jpg
test
Fivethumb.jpg
Can anyone help? it works fine on my computer, but when i upload it, only the 1st 3 images can appear.
going insane
help~
:puzzled:
Well, i havent studied the code all through but sounds like if the first two loads, but then doesnt, theres prob in the 3- XX images. R the images upoloaded in the correct folder. R the file names EXACTLY the same as at the xml file?
What do u mean by 3 - XX images?
yup its the same, it works fine on my computer. but when i upload it, the middle few pictures just cant load, the 1st 2 are fine, when i click next to the 3rd pic, it just hang there. but if i click more to the last pic, it loads the last pic. what do u mean by 3-XX images?
Well, i havent studied the code all through but sounds like if the first two loads, but then doesnt, theres prob in the 3- XX images. R the images upoloaded in the correct folder. R the file names EXACTLY the same as at the xml file?
Maybe, try rechecking that 3rd image and make sure that it is saved as Non-Progressive...
Like if you use Photoshop... Save for Web and then make sure the Progressive mark is Off.
Hi guys,
I used the codes shown in XML Thumbnail Photo Gallery, it works fine on my computer. But When i upload the website, my picture won't come out after the 3rd image, the 4th 5th 6th 7th is all blank, but my 11th 12th and 13th images can appear.
My total images are 13 images. Only the 1st 3, 1st 2nd 3rd and the last 3 11th 12th and 13th can appear. Anyone of u know the reason?
It works fine on my computer though, but when i upload my files to a hosting site, it start giving me problems.
Thanks alot if anyone can help me.
I just had to reply to this one cuz I ran into this same issue where things are working great on my computer but as soon as it's posted, the gallery doesn't appear. Just check the filenames of the jpg files. For me, I had some filenames where the ".JPG" extension were all in CAPS. On PC, it's case insensitive... but not so on unix servers...
Does anyone maybe know how to improve the image quality in this? the images are very pixelated and bad.
Is there any way to increase the size of the pictures...
anyone?
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home |