Multiple Photo galleries?

are you targetting the holder MovieClip correctly? :-\

by the way… it’s superkax, not Superkax!! :stuck_out_tongue:

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

this._parent.holder … right?

edit::: Mr Superkax

nope, this._parent._parent.holder. :wink:

LOL, opppss , yeah working now, thanks :beam:

:stuck_out_tongue:

anytime, soulty. =)

SuperKax

all is working well, :slight_smile: 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 :slight_smile:

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


_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?

yeah… that would be the idea. :slight_smile:

but this line doesn’t make any sense…

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

what’s that?? :-\

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



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


that dosent make sense though, lol :-\

it should read


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

shouldnt it

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

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.

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


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?

Originally posted by superkax
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… :stuck_out_tongue: :wink:

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

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

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

yeah i saw that :slight_smile:

so… did you get it to work? =)

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

put this code on it


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

well, that should work. :-\

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

getURL(whatever, "_blank");

:wink:

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


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

//

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

//

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

//and so on so forth


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


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 SuperKax, talk to you 2morrow
:wink: