I despise image gallery

OK, i used the tutorial from kirupa.com to make my gallery. I folowed every instruction couldnt get it right. So, i got lazy and just downloaded the .fla. I change the picture names and the file path and i get my first picture coming up, i click next arrow, fades out to nothing. If i test my movie in flash, i get output of Nan over and over. No clue what this means and its pi$$ing me off!

my site

post it up, get ppl to have a look at it

heres the .fla

You get which output exactly?

i get output that reads NaN

NaN - Not a number.

Do you have more than one pic?

ya, i have 18 of them, so what does this “not a number” mean. there is probably sumthin in the script i ****ed up;
This is exactly what i have:

/*
i wrote this code, but you can use and abuse it however you like.
the methods are defined in the order which they occur to make it
easier to understand.
*/
// variables ------------------------------------------
// put the path to your pics here, include the slashes (ie. “pics/”)
// leave it blank if they’re in the same directory
this.pathToPics = “http://www.geocities.com/teambronze4/tonio.html”;
// fill this array with your pics
this.pArray = [“tonio1.JPG”,“tonio2.JPG”,“tonio3.JPG”,“tonio4.JPG”,“tonio5.JPG”,“tonio6.JPG”, “tonio7.JPG”, “tonio8.JPG”, “tonio9.JPG”, “tonio10.JPG”, “tonio11.JPG”, “tonio12.JPG”, “tonio13.JPG”, “tonio14.JPG”, “tonio15.JPG”, “tonio16.JPG”, “tonio17.JPG”, “tonio18.JPG”];
this.fadeSpeed = 20;
this.pIndex = 0;
// MovieClip methods ----------------------------------
// d=direction; should 1 or -1 but can be any number
//loads an image automatically when you run animation
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%this.pArray.length;
if (this.pIndex<0) {
this.pIndex += this.pArray.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
// specify the movieclip to load images into
var p = _root.photo;
//------------------------------------------
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};
// Actions -----------------------------------------
// these aren’t necessary, just an example implementation
this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
this.changePhoto(-1);
} else if (Key.getCode() == Key.RIGHT) {
this.changePhoto(1);
}
};
Key.addListener(this);

It’s seams everything is OK.

I assume problem is in that location.

Does your gallery works on your local harddrive?

Try to put “image0.jpg” first. I saw som galleries that it won’t work with 10, 20 etc in file name. I really don’t know reason.

Try this and post it. I am curious why this doesn’t work.

I’ll look more carefully to find error. 'till then…

Best regards.

ok, i got to work on my comp, i’m gonna attempt to put it on the net, but i’m unsure bout the path to put it to.

Ok, iloaded everything to my site and it doesnt work, so i cant inclose the whole thing but if someone wants it just email me for the one that works on the hardriveand i will seriously send someone a buck if they can fix this for me.

i’m trying to put it on this site here www.geocities.com/teambronze4

i dont understand why this will not work when i put it on the net, but if you put in the address www.geocities.com/teambronze4/tonioa.jpg it shows the pics, but when i try to put this same address in the actions, but without the filename, it doesnt work and i’m so confused it pi$$es me off and i want it to work.

nevermind at ****ing all, AHHHHHHHHH i hate geocities but to broke to pay errrrrrrrrrrrr, o wait this should still work?

Pulling files from your GeoCities account to a location outside of Yahoo! GeoCities, such as auction sites, message boards, and other web sites.
Using GeoCities for the sole purpose of storing files.
Nudity/****ography.
Registering for multiple accounts.
Using GeoCities for commercial purposes.
Using GeoCities for hate/defamatory purposes.
Using your GeoCities home page to redirect visitors to other sites.
Improperly promoting your website via email, message boards, or instant message (i.e., spam).

This is what geocities says is stuff i cant do but yet its lettinme have a footer, and would this stop me from properly creating my gallery.
all thesequestions in a 20 min period hurts my head.
:m:

I heard some hosting company doesn’t allow any script on their server, and that mean Flash MX script.

But, try this…

Put location something IP / … /images
On your home page put everything you need to
load flash (SWF file).

You have to do this with Total Commander (or earlier Windows Commander) via FTP.

I tried this last night again and works fine. Even with 0, 10, 20… in file name.

Find some tutorials for publishing flash animation on Internet. I think there might be an answer.

BR.

it works now thanks zodiac you’ve been a lot of help

check it out: www.geocities.com/teambronze4/pictures.html