# 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:** 3

<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:42pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/41 "2003-05-07T13:42:29Z")

</div>

are you targetting the holder MovieClip correctly? :-\

by the way… it’s super **kax** , not Superkax!! 😛

---

<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:44pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/42 "2003-05-07T13:44:07Z")

</div>

the holder.mc is on the main timeline of the external swf. so it should be

this.\_parent.holder … right?

edit::: Mr Super **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, 1:45pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/43 "2003-05-07T13:45:30Z")

</div>

nope, this.\_parent.\_parent.holder. 😉

---

<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:48pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/44 "2003-05-07T13:48:57Z")

</div>

LOL, opppss , yeah working now, thanks :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, 1:52pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/45 "2003-05-07T13:52:05Z")

</div>

😛

anytime, soulty. =)

---

<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:06pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/46 "2003-05-07T15:06:16Z")

</div>

Super **Kax**

all is working well, 🙂 made some new variables and a new array for text. so whenever a image is selected there is a text title with it. So i kinda merged both projects together 🙂

Now if i want to have the loader mc that holds the image to , when a image is loaded , to be able to be selected to open up a html page container a larger image.

Im guessing create some more variables and a new array callled urls holding the appropriate urls matching up the image and text array. and basically call a get url ? in the function? is this right

```auto

_global.subgalleryurl=0, _global.indexurl=0;
galleryUrl = [["image1a.html", "image1b.html"],["image2a.html", "image2b.html"]];

test.sub.onRelease = function() {
	_global.subgalleryurl = 0;
	_global.indexurl = 0;
this._parent._parent.loader.getUrl(gallery[subgallery][index]);

```

does sound right?

---

<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:14pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/47 "2003-05-07T15:14:36Z")

</div>

yeah… that would be the idea. 🙂

but this line doesn’t make any sense…

```auto
this._parent._parent.loader.getUrl(gallery[subgallery][index]);

```

what’s that?? :-\

---

<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:17pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/48 "2003-05-07T15:17:31Z")

</div>

ok, mistake. that suppose to say that the result of that button’s function when click it will load what is in the url array

```auto

this._parent._parent.loader.getURL(galleryurl[subgalleryurl][indexurl]);

```

---

<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:19pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/49 "2003-05-07T15:19:38Z")

</div>

that dosent make sense though, lol :-\

it should read

```auto

getURL(galleryurl[subgalleryurl][indexurl]_blank);

```

shouldnt 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, 3:23pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/50 "2003-05-07T15:23:16Z")

</div>

yup… and remember to use a global variable so you don’t any addressing problems. 😉

and also assign the event handler everytime you load a .jpg, since it will be erased once the new .jpg is loaded into the MovieClip.

---

<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, 4:05pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/51 "2003-05-07T16:05:00Z")

</div>

actually its not working like i thought :-\

With the above script when gallery 1 butt is selected is will load the image as well as the htm page.

When i wanted the actual loader.mc to be a button depending on the content to go to that particular images html page.

So when you select the loader.mc it will load the html page

i tried

```auto

pic.onRelease = function() {
	_global.subgalleryurl = 0;
    _global.indexurl = 0;
	this._parent.getURL(galleryurl[subgalleryurl][indexurl],_blank);
};

```

but that only worked when the jpegs werent loaded. As soon as the jpegs were loaded it diabled the button.  
:-\ Intresting !

what u think?

---

<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, 4:17pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/52 "2003-05-07T16:17:34Z")

</div>

> _Originally posted by super **kax** _  
> **and also assign the event handler everytime you load a .jpg, since it will be erased once the new .jpg is loaded into the MovieClip.**

that’s what i think… 😛 😉

[edit]i forgot to say… or you could just make an invisible button over the .jpg and assign the actions to it. ;)[/edit]

---

<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, 4:18pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/53 "2003-05-07T16:18:39Z")

</div>

i dnt know what you mean by that, sorry dude , as you can see i’m just learning as.

---

<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, 4:23pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/54 "2003-05-07T16:23:33Z")

</div>

just in case you didn’t notice it, i’ve edited my last post. 🙂

---

<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, 4:25pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/55 "2003-05-07T16:25:34Z")

</div>

yeah i saw that 🙂

---

<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, 4:29pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/56 "2003-05-07T16:29:07Z")

</div>

so… did you get it to work? =)

---

<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, 4:31pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/57 "2003-05-07T16:31:24Z")

</div>

trying to :-\ just used a mc called launch under the window

put this code on it

```auto

on (release) {
	getURL(galleryurl[subgalleryurl][indexurl],_blank);
}

```

---

<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, 4:51pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/58 "2003-05-07T16:51:30Z")

</div>

well, that should work. :-\

but there’s one thing, you forgot the quotes in the window parameter…

```auto
getURL(whatever, "_blank");

```

😉

---

<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:00pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/59 "2003-05-07T17:00:47Z")

</div>

yeah it should work, its opening the folder directory of where the images are instead??

Ive been adding this to the functions of the subgallery buttons

```auto

_global.subgalleryurl = 0;
_global.indexurl = 0;

//

_global.subgalleryurl = 1;
        _global.indexurl = 0;

//

_global.subgalleryurl = 2;
        _global.indexurl = 0;

//and so on so forth

```

---

<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:21pm UTC](https://forum.kirupa.com/t/multiple-photo-galleries/20018/60 "2003-05-07T17:21:09Z")

</div>

also tried this, put this in with the rest of the function

```auto

launch.onRelease = function() {
        _global.subgalleryurl = 0;
        _global.indexurl = 0;
        getURL(galleryurl[subgalleryurl][indexurl],"_blank")
        ;
};

//

launch.onRelease = function() {
        _global.subgalleryurl = 1;
        _global.indexurl = 0;
        getURL(galleryurl[subgalleryurl][indexurl],"_blank")
        ;
};
//and so on

```

Ill leave it here for tonight, this way and the way i mentioned a post ago seem to work , but it just opening the folder that holds the htm pages not the actual htm.

Might be different if i put it up on the internet.  
Thanks again Super **Kax** , talk to you 2morrow  
😉

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

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