Iâve been using the tutorial found on http://www.kirupa.com/developer/mx/photogallery.htm to help me make my photo gallery. However, although I did everything the same to a T, it still doesnât work. Iâve spent forever trying to figure out whatâs wrong.
Iâve adjusted the script accordingly to how the tutorial explains, and I even tried using different folders. I know itâs working, because the output isnât returning any error messages. Something makes me feel that itâs reading but the pictures arenât being displayed.
I donât know, I was hoping somebody could help me out. Iâd appreciate it, thanks.
Iâm using the same tutorial and Iâm having the same issue. Also once I get it working how do you get the photo gallery to start changing images automatically instead of using te buttons to change images?
Thanks Scotty for both fixes. I âthoughtâ I had my jpegs saved as non-progressive. I changed them to basline in Photoshop and it loads now and it plays automatically.
I got similar problem with as ajaxxâs. i followed the same tutorial and couldnât make it work.:-/ at some point, the photo actually showed up, but the button didnât work. and then the button work, but the photo wasnât in the right place (it always showed up at the bottom of the masked layer).
attached what i got. hope u can help me. thanks a lot!
Thank you so much for this tutorial⌠itâs a life saver!!!
Well, it works fine for me ⌠but what I want to know is:
I have some humongous images ⌠over 1000*1000 pixles in dimension.
How do we make the code resize each image to fit within the mask ?
Donât tell me I have to resize every single picture!!!
@liltea, the photo mcâs registrationpoint should be topleft, you had it in middle left and youâve scaled it, so the picture gets scaled as well:)
The pictures in your folder had a .jpg.jpg extension and if you use text in your buttons, uncheck the selectable optionâŚ
Iâve attached the fixed fla;)
@axelmurillo, you can scale them after the picture is fully loade, so just before the fadeIn function, butâŚwhy load such a big picture?
If resize them before you load them (in eg Photoshop) the loading time will be much less and your audience much more happy;)
Oh wow ⌠my audience wonât mind!!! (and weâll all work so much less!!)
see, i have about 500 images in a bunch of different albums⌠about 30-50
and i wanna upload them all using this tutorial.
could you please tell me how to scale it after it loads? i donât know
how to edit actionscript. i know cut and paste!
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l && this.photo._width>0 && this.photo._height>0) {
//change the "25" to the value you want
this.photo._xscale = this.photo._yscale=25;
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};