# Dynamic image scrolling gallery

**URL:** <https://forum.kirupa.com/t/dynamic-image-scrolling-gallery/52003>\
**Category:** flash\
**Created:** [May 19, 2004, 2:52am UTC](https://forum.kirupa.com/t/dynamic-image-scrolling-gallery/52003 "2004-05-19T02:52:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gazzer](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gazzer](https://forum.kirupa.com/u/gazzer)\
**Post date:** [May 19, 2004, 2:52am UTC](https://forum.kirupa.com/t/dynamic-image-scrolling-gallery/52003/1 "2004-05-19T02:52:03Z")

</div>

With the help of Scotty and several of the tutorials here in these forums I have a dynamic scroller. The only problem is that I cannot figure out how to have one of the images appear on stage as an initial placeholder. Currently it is blank. The following is the code:

this.pathToPics = “image1folder/”;  
this.pArray = [“image0.jpg”, “image1.jpg”, “image2.jpg”, “image3.jpg”, “image4.jpg”, “image5.jpg”];  
this.fadeSpeed = 20;  
MovieClip.prototype.changePhoto = function(d) {  
this.pIndex = d;  
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() {  
var p = this.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;  
}  
};  
// code for the menu  
xcenter = 185;  
speed = 1/20;  
wijd = menu.\_width/2+19;  
menu.setMask(mask);  
menu.onEnterFrame = function() {  
if (mask.hitTest(this.\_root.\_xmouse, this.\_root.\_ymouse)) {  
var distance = this.\_parent.\_xmouse-xcenter;  
this.\_x += (distance\*speed);  
if (this.\_x\>0) {  
this.\_x = -wijd;  
}  
if (this.\_x\<-wijd) {  
this.\_x = 0;  
}  
}  
};

Any help or direction would be greatly appreciated. Scotty are you out there?

Gazzer

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 10, 2004, 3:33pm UTC](https://forum.kirupa.com/t/dynamic-image-scrolling-gallery/52003/2 "2004-09-10T15:33:47Z")

</div>

scotty,  
I’ve been reading through this and other posts about dynamic image galleries, and I’m not able to get any of them to work properly. I need a gallery that has scrollable thumbnails, a full pic, and a description. It seemed like the modified kirupa photo gallery was an answer, but I can’t make it work. When I test it, the photo holder and the back button fade away and nothing else happens. Can you point me to any clues?

Thanks,  
-Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 10, 2004, 3:52pm UTC](https://forum.kirupa.com/t/dynamic-image-scrolling-gallery/52003/3 "2004-09-10T15:52:10Z")

</div>

Can you post your .fla(s)?

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 11, 2004, 12:33pm UTC](https://forum.kirupa.com/t/dynamic-image-scrolling-gallery/52003/4 "2004-09-11T12:33:35Z")

</div>

Hi

What do I need to make this script to work for me?  
a mc named \*photo, \*an folder \*images \*containing the non-progresive images… ? can someone post a working .fla, it would make my day!

regards, henrik
