# Multiple Photo galleries?

**URL:** <https://forum.kirupa.com/t/multiple-photo-galleries/20018>\
**Category:** flash\
**Created:** [May 4, 2003, 2:48am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018 "2003-05-04T02:48:07Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [May 7, 2003, 2:19am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/21 "2003-05-07T02:19:07Z")

</div>

changed this.setText(); to \_root.content.setText();

same problem , even tried. setText(); by it self.

---

<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:** [May 7, 2003, 3:56am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/22 "2003-05-07T03:56:37Z")

</div>

non of the above worked, any suggestion kax?

---

<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:** [May 7, 2003, 5:42am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/23 "2003-05-07T05:42:25Z")

</div>

ehmm… try adding **this** before the instance name of the TextField in the function. :-\

---

<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:** [May 7, 2003, 6:02am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/24 "2003-05-07T06:02:52Z")

</div>

this.currentImage.text = gallery[subgallery][index];

that line?

---

<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:** [May 7, 2003, 6:46am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/25 "2003-05-07T06:46:03Z")

</div>

Still not working :-\ ok, im going to make a new swf, with new mc’s and new external swf, and see how i go, might be something weird with the layout im working with.  
I’ll keep u posted.

::Soulty:smirk:

---

<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:** [May 7, 2003, 7:07am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/26 "2003-05-07T07:07:12Z")

</div>

hmmm… i feel stupid. 😛

attach/send me your files and i’ll try to fix it. =)

---

<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:** [May 7, 2003, 8:00am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/27 "2003-05-07T08:00:19Z")

</div>

check ur PM 🙂

---

<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:** [May 7, 2003, 8:03am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/28 "2003-05-07T08:03:20Z")

</div>

yup… got the files. =)

---

<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:** [May 7, 2003, 8:57am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/29 "2003-05-07T08:57:02Z")

</div>

do you have any masks in base8.swf?

i got it to work by embedding the font and this script:

```auto
_global.subgallery=0, _global.index=0;
gallery = [["wathever"], ["whatever"], ["whatever"], ["whatever"]];
test.sub.onRelease = function() {
	_global.subgallery = 0;
	_global.index = 0;
	this._parent._parent.currentImage.text = gallery[subgallery][index];
};
test.sub2.onRelease = function() {
	_global.subgallery = 1;
	_global.index = 0;
	this._parent._parent.currentImage.text = gallery[subgallery][index];
};
test.sub3.onRelease = function() {
	_global.subgallery = 2;
	_global.index = 0;
	this._parent._parent.currentImage.text = gallery[subgallery][index];
};
test.sub4.onRelease = function() {
	_global.subgallery = 3;
	_global.index = 0;
	this._parent._parent.currentImage.text = gallery[subgallery][index];
};
prevPic.onRelease = function() {
	_global.index>0 ? _global.index-- : _global.index=gallery[subgallery].length-1;
	this._parent._parent.currentImage.text = gallery[subgallery][index];
};
nextPic.onRelease = function() {
	_global.index<gallery[subgallery].length-1 ? _global.index++ : _global.index=0;
	this._parent._parent.currentImage.text = gallery[subgallery][index];
};

```

---

<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:** [May 7, 2003, 9:02am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/30 "2003-05-07T09:02:00Z")

</div>

the door transition has a mask. why you asked?  
:wouldnt think something like that would effect it.

---

<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:** [May 7, 2003, 9:04am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/31 "2003-05-07T09:04:50Z")

</div>

because you must embed the font outline in order to mask a dynamic TextField. 😉

**edit.** is the MovieClip **contents** masked or not?

---

<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:** [May 7, 2003, 9:10am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/32 "2003-05-07T09:10:46Z")

</div>

WOOHOO , IT WORKS !!!

Ah the most simplest of thing :!:

Thanks dude for you help :beam:

NOw i can finally get on with the rest of my site.

::: wont be too hard to add a image fade in and out to this script will it? using the kirupa photo gallery as a reference.?

---

<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:** [May 7, 2003, 9:12am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/33 "2003-05-07T09:12:32Z")

</div>

yeah… you shouldn’t have any problems. 🙂  
just remember to remove/change \_root in the script of the photo gallery.

---

<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:** [May 7, 2003, 9:19am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/34 "2003-05-07T09:19:17Z")

</div>

> \*Originally posted by kax \*  
> \*\*because you must embed the font outline in order to mask a dynamic TextField. 😉

**edit.** is the MovieClip **contents** masked or not? \*\*

yeah it is masked, its got a transition animation code in there. frame label open with the mask hiding the doors and frame label close with them hiding the doors. All good now, working 🙂

---

<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:** [May 7, 2003, 9:20am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/35 "2003-05-07T09:20:42Z")

</div>

> \*Originally posted by kax \*  
> \*\*yeah… you shouldn’t have any problems. 🙂  
> just remember to remove/change \_root in the script of the photo gallery. \*\*

yeah i remember seeing some thread, when i went searching for the gallery before about changing **\_root** to **this** :beam:

---

<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:** [May 7, 2003, 9:33am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/36 "2003-05-07T09:33:58Z")

</div>

thanks again mate, i appreciate your help BIG time! :beam:

😉

---

<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:** [May 7, 2003, 9:43am UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/37 "2003-05-07T09:43:29Z")

</div>

😛

no problem. =)  
you can call me super **kax** from now on… 😛 jk 😉

---

<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:** [May 7, 2003, 1:32pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/38 "2003-05-07T13:32:02Z")

</div>

all is good for the type but i forgot this was for jpegs. lol

Don’t i just have to change is the array to jpgs and the

```auto

    this._parent._parent.currentImage.text = gallery[subgallery][index];

//to point it to a mc called holder

this._parent.holder = gallery[subgallery][index];

```

or is there more to it?. such as loadMovie?

sorry to be bothering you again :-\

---

<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:** [May 7, 2003, 1:34pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/39 "2003-05-07T13:34:22Z")

</div>

yeah, change the array to the jpg’s and

```auto
this._parent.holder.loadMovie(gallery[subgallery][index]);

```

😉

---

<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:** [May 7, 2003, 1:38pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/40 "2003-05-07T13:38:24Z")

</div>

I’m falling Superkax !!!

not working :-\

[Previous page](https://forum.kirupa.com/t/multiple-photo-galleries/20018.md?page=1)

[Next page](https://forum.kirupa.com/t/multiple-photo-galleries/20018.md?page=3)
