Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Help Needed With Scotty's V3 Gallery



hi ...i got hold of the v3 gallery with thumbnails...basically the problem i hav is that i need a url to be launched/opened when a particular mc is selected.....the urls are stored in an xml file with the rest of the gallery info...heres an example piece of the xml...<image source="barbershop/big/cut1_big.jpg" thumb="barbershop/thumb/cut1_t.jpg" title="CUT1" link="http://www.google.com"/>heres the AS im using...
Code:
var tnNr;spacing = 10;container._alpha = 0;var curLength;MovieClip.prototype.loadPic = function(pic, id) {info.text = "";this._alpha = 0;this.loadMovie(pic);temp = this._parent.createEmptyMovieClip("temp2", 998);temp.onEnterFrame = function() {var t = container.getBytesTotal(), l = container.getBytesLoaded();bar._visible = 1;per = Math.round((l/t)*100);bar._width = per;if (Math.round(l/t) == 1 && container._width != 0 && container._height != 0) {var w = container._width+spacing, h = container._height+spacing;border.resizeMe(w, h, id);bar._visible = 0;delete this.onEnterFrame;}};};MovieClip.prototype.resizeMe = function(w, h, id) {var speed = 3;container._alpha = 0;this.onEnterFrame = function() {this._width += (w-this._width)/speed;this._height += (h-this._height)/speed;if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {this._width = w;this._height = h;container._x = this._x-this._width/2+spacing/2;container._y = this._y-this._height/2+spacing/2;info._y = Math.round(this._y+this._height/2+spacing/2);container._alpha += 5;if (container._alpha>90) {info.text = id;container._alpha = 100;delete this.onEnterFrame;}}};};function galleryChoice(q) {pArray = new Array();tArray = new Array();iArray = new Array();my_xml = new XML();for (var j = 0; j<curLength; j++) {this.scroll.th_nav["thmb"+j].removeMovieClip();}my_xml.ignoreWhite = true;my_xml.onLoad = function(loaded) {if (loaded) {gallery = this.firstChild.childNodes[q];curLength = gallery.childNodes.length;for (var i = 0; i<gallery.childNodes.length; i++) {pArray.push(gallery.childNodes[i].attributes.source);tArray.push(gallery.childNodes[i].attributes.thumb);iArray.push(gallery.childNodes[i].attributes.title);}}delay = setInterval(makeButtons, 50);};my_xml.load("gallery.xml");}function makeButtons() {tnNr = 0;clearInterval(delay);for (var i = 0; i<tArray.length; i++) {var thb = scroll.th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);thb.id = i;thb._x = i%3*70;thb._y = Math.floor(i/3)*67;}loadButtons();}function loadButtons() {var tbox = scroll.th_nav["thmb"+tnNr].box;tbox.loadMovie(tArray[tnNr]);temp = this.createEmptyMovieClip("tmp"+tnNr, 999);temp.onEnterFrame = function() {bt = tbox.getBytesTotal();bl = tbox.getBytesLoaded();if (bt == bl && bt>4) {nextButton();delete this.onEnterFrame;}};}function nextButton() {if (tnNr<tArray.length-1) {tnNr++;loadButtons();} else {activateButtons();}}function activateButtons() {mainButtons();for (var i = 0; i<pArray.length; i++) {var but = scroll.th_nav["thmb"+i];but.id = i;but.onRelease = function() {container.loadPic(pArray[this.id], iArray[this.id]);disButtons2(this.id);};}container.loadPic(pArray[0], iArray[0]);disButtons2(0);}butArray = new Array();butArray = ["gal1_btn", "gal2_btn", "gal3_btn", "gal4_btn"];function mainButtons() {for (var i = 0; i<butArray.length; i++) {this[butArray[i]].id = i;this[butArray[i]].onRelease = function() {galleryChoice(this.id);disButtons(this.id);};}}function disButtons2(d) {for (var i = 0; i<tArray.length; i++) {if (i != d) {this.scroll.th_nav["thmb"+i].enabled = 1;this.scroll.th_nav["thmb"+i].box._alpha = 100;} else {this.scroll.th_nav["thmb"+i].enabled = 0;this.scroll.th_nav["thmb"+i].box._alpha = 50;}}}function disButtons(d) {for (var i = 0; i<butArray.length; i++) {if (i != d) {this[butArray[i]].enabled = 1;this[butArray[i]].gotoAndStop(1);} else {this[butArray[i]].enabled = 0;this[butArray[i]].gotoAndStop(2);}}}disButtons(0);galleryChoice(0);
i've made various attemps...but i either get sommink like 'cannot find "_blank"... or i get directed to my index folder....any help would be greatly appreacited...please.. thanks....



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 12-13-2005, 07:50 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

V3 Gallery By Scotty
I'm trying to build up a photo gallery based in the V3 gallery made by Scotty. I'm almost done with the gallery and it's working fine, i just need to add 2 more things to the gallery but not results yet. First i would like to know if it's possible to add a "close or back" button to the main picture, so each time the user click on a thumbnail and the main picture is loaded the user can press this button and close it. My idea is to open the main picture over the thumbnails, then after the user take a look of the current picture, he could close it by pressing this "close or back button" and then go back to the thumbnails to choose another pic (hope it makes sense).
The second thing i would like to do is to add a roll over effect to the thumbnails, something like on roll over modify the alpha, or add to each of the thumbnail a sound . i been trying this but i can't figure out how to modify the AS to achieve it.
Maybe i'm asking for too much, but if anybody can help, it'll be really appreciated.
Thanks!

Help With Scotty's Gallery
Hi all,

I am hoping someone can help me with one of Scotty's galleries from this post http://www.kirupa.com/forum/showthread.php?t=87388

I was wondering if anyone has put in "next" and "back" buttons into the "V3_with_thumbs_scrolled" gallery? I have tried a few things but none work, which probably because I don't understand a couple of parts of the code. If anyone can help, it would be cool.

Thanks to anyone who gives it a shot!

Plonker

Scotty XML Gallery
This may be a dum question, but how many images can i load from a xml file into the Scotty xml gallery.

I'm only loading 33 and the infinite menu gallery stops

If anyone coul help me please

Scotty's Gallery Help
I'm trying to create an image gallery like this, http://www.noriomatsumoto.com/
but i'm not having too much luck. I'm having problems with the thumbnails, i'm trying to get them to advance 1 at a time like on that site, but I can't get it to work right.

Any suggestions or links that would help me?

Thanks
Matt

Scotty's Gallery - Configure From XML
I would like to add some variables which could be changed in the XML.

The XML part I'm fine with... it's just loading them with the action script.

Could someone please show me how I can read and implement a variable.

TIA

Scotty Gallery With Transition? Possible?
I've been searching the forum for hours but can't seem to find the solution to this problem.

I want to load the larger image in a new Movie after a transition. and unload the thumbscroller
With the example it loads in the container that is already placed.

How can this be done? It must be very easy.

I've added the file again and hope someone preferably scotty cracks it!

it has something to do with changing this of course


Quote:




item.onRelease = function() {
containerMC.loadPic(this.id);

Scotty Xml Gallery With Thumbs
Hallo Guys,

I'm using the Scotty's V 3 gallery with thumbs and the V_3 Galllery with thumbs scroll, I would like to know if it's possible to add button for:

Slideshow (for Both)

Next and Previous button ( for both)

Please, let me know if it's possible...

Damiano

Preloader With Scotty's Gallery?
Can anyone show me the way to build a preloader for Scotty's XML multi gallery?

--> http://www.kirupa.com/forum/showthread.php?t=213873

Thanks.

Help Scotty, For A Little Kirupa Gallery Update..
hi,


i just finish this great tutorial :
http://www.kirupa.com/developer/mx20...otogallery.htm

it works perfectly... but i try to add a new feature to it :

adding a simple list to choose differents "theme"..
"theme" are a new XML entry.
each "theme" have a specifique list of pictures with comments ( like the original tutorial )

how do this ?

Rollover Text With Scotty's Gallery...
Hi there...

I have a problem with the rollover text using scotty's image resize gallery... I have replaced his buttons with an animated button found from a tutorial on Kirupa. I have alterered the button to work instead of the thumbnails, and everything seems to load and unload just fine... but I can't get the rollover text to appear on my new button at all, why is this happening? I have attached the .fla with an example... included is my custom animated button (with no text display) and a couple of regular buttons which display text fine.

This should be an easy fix, any help is greatly appreciated...

Gotemgreat

Scotty's V3 Gallery - Jumping Dragger
I've modified Scotty's gallery (V3 with thumbs scrolled) to hold larger thumbs (as well as other changes) and I'm having problems with the up and down buttons making the dragger scroll only halfway down and then stop. If I click and hold on the dragger to move it down starting from the top, it will jump halfway down. I've looked at the scrollbar AS and I can't find out what's wrong. But I've modified the file so much, I might have missed something.

Thanks.

Multiple Preloader For The 'scotty' Gallery
yup - yet another post on the famous XML gallery by scotty

I only found one post about this subject searching the forum, and it concers Flash MX - and I coundent quite get the code to work properly in MX 2004:

http://www.kirupa.com/forum/showthread.php?t=93050

The thing is, that I'm trying to build a multiple preloader for the gallery, so instead of the images being loaded each time the user clicks the next button - the images should start loading upon entering the gallery. So when I'm looking at the first image, I would like the others images to be loaded in "behind", so I don't have to wait on the next image to load each time..

I suck when it comes to preloaders - so if anyone could point me in the right direction, I would be very glad.

Scotty's Image Resize Gallery
I'm trying to create a photo gallery for a site that I'm working on and I'm having some trouble. Some of the pictures will show up, but not all of them. I've tried to figure out what's wrong, but I have no clue. Can someone help me out? The gallery that I'm using is one that I found here: http://www.kirupa.com/forum/showthread.php?t=87388

Here's the link to the gallery
http://www.cindyambuehl.net/photos.html

Here's my fla
http://www.cindyambuehl.net/photos.fla

The Gallery With Multiple Galleries, Scotty?
As a graphic design student I am making an online portfolio these days. "The gallery with multiple galleries using one XML" is almost just what I need.

In this portfolio I am using the galleries inside the gallery as project galleries. Some projects are going to contain only one image. Therefore I dont need the prev/next buttons in some cases. Is there a way to atomatically disable the prev/next buttons in galleries with only one image? Is there a way to load text for the whole project gallery and not every single image? And is it someway possible to put HTML in this text? When I try, the gallery doesn´t work. It would at least be nice to be able to put links and do some basic text editing in the text field.

And at last I want to get rid of the resizing. I know that I can make the jpgs I´m loading into the gallery in one size, but its kind of messy having a lot of scripting you dont need in the document. I´ve tried tidying up the code, but I cant make it without putting everything out of order. (I know this may be silly, but I´m a tidy person )

Hope this isn´t way too much to ask for. I would be very gratefull if someone could help me out!

Scotty's Image Resize Gallery
Hi Everyone

I found this great thread Scotty's Image Resize Gallery and have been playing around with some of the files. The one things no-one has mentioned in all of the posts, is how you might be able to customise the border.

I see where it is written in the code, but what I really need to do is create a scribbly line rather than a straight one. It seems best to create mc and then have this re-size and stretch as the images re-size.

Has anyone got a clue how or if this can be done easily to the code already in palce?

Tnx

Extra Dynamic Txt Box In Scotty's Gallery
I downloaded the source file for Scotty's V3_with_thumbs and would like to know how to add another dynamic text box to it.

I've tried and copied the arrangement and placement of iArray (calling it dArray), added dArray.push(gallery.childNodes[i].attributes.descrip); (with descrip being my new entry in the XML file). Given an instance name etc... but if I call descripTxt.text = id; (descripText being the instance name of the text box) I get the same Text given by the existing info/title text.

dArray traces with the correct content (but all of it).

Can someone help me with adding in another dynamic text box please?

Scotty's V3 With Thumbs Photo Gallery.
Hi guys.

I recently downloaded the amazing "V3 with thumbs mx" photo gallery fla.

I am a flash novice so excuse me if i am asking a simple question.

This photo gallery is just what i wanted, however, i am trying to change the menu options to the top left of the gallery - Gallery 1, Gallery 2, Gallery 3, Gallery 4. I am trying to change these names to Area 1, Area, 2, Area 3, Area 4.

When i double-click on say Gallery 1, i am taken into the movie clip, but from here i am not able to change Gallery 1 to Area 1??? Can someone please advise as to how the Gallery 1 text can be changed???

Much appreciated.

Scotty's Image Resize Gallery
Hello,

This is my first post at this forum. Wow great information.

I've downloaded Scotty's Image Resize Gallery found at
http://www.kirupa.com/forum/showthread.php?t=87388

and I would like to replace the jpegs with external swf's. I tried replacing the images and it loads the first movie but then it just freezes. I was wondering if somebody would be able to help me with this. Thank you.

Questoin About Scotty's Infinite Photo Gallery
Hi, I downloaded one of Scotty's great things (file name : Infinite_dynamic_mx) and tried to understand how to do it. Here is my first question which is about the preloader. Correct me from wrong, the green bar is to show the loading progress of the thumbnails, then how comes the thumbnails showed before the green bar finished loading.

Loading Bar Within Scotty's Image Resize Gallery
I have the gallery working perfectly, i also have a loading bar script ive got seperatly working. But does anyone know how i can work the 2 together so that as an image loads the loading bar shows in the centre of the box?
thanks

Help With Scotty's Image Resize Gallery In A Website
help with Scotty's Image Resize Gallery in a website
Hello, great people of Kirupa!
With the help of your tutorials i did my first website in flash. I am sorry if my english is not "perfecto". The site i from a friend photographer that a have.
It is not fully fully completed but, the base is done and you can meet it in:
www.joseluisgarcia.com.ar
The only problem that i cannot handle by myself is a sort of BUG that i encountered in the galleries. If you try to see any image more than twice, the buttons of the entire gallery becomes disabled.
¿Can somebody give me a solution for that?
I would like take opinions of the web site too.
Well, thanks for at least read this message.

__________________

HELP - Applying Rollovers To Scotty's Gallery Thumbs...
I have been tryin to correctly apply a rollover and rollout to a modified vs. of "vs3 with thumbs" by Scotty found on this forum.

I'm trying to have them rollover to an _alpha of 100 and then rollOut to 50 which is what they are originally set at. I don't know what I'm doing wrong but when I rollover it stay's at 50 and when I rollOut it goes to 25%! Very frustrating - I've tried adjusting a ton of different things and still no solution!

Such a simple task turns out to be a nightmare to try and figure out. It's been 3 days and I can't figure this out so HOPEFULLY someone here can help.

Here is my files if someone could take a quick look - http://thesavager.com/12oz/gallery.zip

and below is my AS...

Thanks so much in advance!!!



Code:
var tnNr;
spacing = 10;
container._alpha = 0;
var curLength;
MovieClip.prototype.loadPic = function(pic, id) {
info.text = "";
this._alpha = 0;
this.loadMovie(pic);
temp = this._parent.createEmptyMovieClip("temp2", 998);
temp.onEnterFrame = function() {
var t = container.getBytesTotal(), l = container.getBytesLoaded();
if (Math.round(l/t) == 1 && container._width != 0 && container._height != 0) {
var w = container._width+spacing, h = container._height+spacing;
border.resizeMe(w, h, id);
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.resizeMe = function(w, h, id) {
var speed = 3;
container._alpha = 0;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
container._x = this._x-this._width/2+spacing/2;
container._y = this._y-this._height/2+spacing/2;
info._y = Math.round(this._y+this._height/2+spacing/2);
container._alpha += 5;
if (container._alpha>90) {
info.text = id;
container._alpha = 100;
delete this.onEnterFrame;
}
}
};
};
function galleryChoice(q) {
pArray = new Array();
tArray = new Array();
iArray = new Array();
my_xml = new XML();
for (var j = 0; j<curLength; j++) {
this.th_nav["thmb"+j].removeMovieClip();
}
my_xml.ignoreWhite = true;
my_xml.onLoad = function(loaded) {
if (loaded) {
gallery = this.firstChild.childNodes[q];
curLength = gallery.childNodes.length;
for (var i = 0; i<gallery.childNodes.length; i++) {
pArray.push(gallery.childNodes[i].attributes.source);
tArray.push(gallery.childNodes[i].attributes.thumb);
iArray.push(gallery.childNodes[i].attributes.title);
}
}
delay = setInterval(makeButtons, 50);
};
my_xml.load("gallery.xml");
}
function makeButtons() {
tnNr = 0;
clearInterval(delay);
for (var i = 0; i<tArray.length; i++) {
var thb = th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
thb.id = i;
thb._x = i%2*78;
thb._y = Math.floor(i/2)*78;
}
loadButtons();
}
function loadButtons() {
var tbox = th_nav["thmb"+tnNr].box;
tbox.loadMovie(tArray[tnNr]);
temp = this.createEmptyMovieClip("tmp"+tnNr, 999);
temp.onEnterFrame = function() {
bt = tbox.getBytesTotal();
bl = tbox.getBytesLoaded();
if (bt == bl && bt>4) {
nextButton();
delete this.onEnterFrame;
}
};
}
function nextButton() {
if (tnNr<tArray.length-1) {
tnNr++;
loadButtons();
} else {
activateButtons();
}
}
function activateButtons() {
mainButtons();
for (var i = 0; i<pArray.length; i++) {
var but = th_nav["thmb"+i];
but.id = i;
but.onRelease = function() {
container.loadPic(pArray[this.id], iArray[this.id]);
disButtons2(this.id);
};
}
container.loadPic(pArray[0], iArray[0]);
disButtons2(0);
}
butArray = new Array();
butArray = ["gal1_btn", "gal2_btn", "gal3_btn", "gal4_btn"];
function mainButtons() {
for (var i = 0; i<butArray.length; i++) {
this[butArray[i]].id = i;
this[butArray[i]].onRelease = function() {
galleryChoice(this.id);
disButtons(this.id);
};
}
}
function disButtons2(d) {
for (var i = 0; i<tArray.length; i++) {
if (i != d) {
this.th_nav["thmb"+i].enabled = 1;
this.th_nav["thmb"+i].box._alpha = 50;
this.th_nav["thmb"+i].onRollOver = function() {
this._alpha = 100;
//this.alphaTo(100, 0.2, "linear");
}
this.th_nav["thmb"+i].onRollOut = function(){
this._alpha = 50;
//this.alphaTo(50, 0.2, "linear");
}
}
else {
this.th_nav["thmb"+i].enabled = 0;
this.th_nav["thmb"+i].box._alpha = 100;

}
}
}
function disButtons(d) {
for (var i = 0; i<butArray.length; i++) {
if (i != d) {
this[butArray[i]].enabled = 1;
this[butArray[i]].gotoAndStop(1);
} else {
this[butArray[i]].enabled = 0;
this[butArray[i]].gotoAndStop(2);
}
}
}
disButtons(0);
galleryChoice(0);

Scotty's Image Resize Gallery XML Question
so im using this wonderful gallery.. and im in some problems that its prob pretty simple to answer..

im using v3 with thumbs version.. and all i wanted to do was make it to where the descriptions of the pictures.. some of the words i would like to be in bold, but since its dynamic text, im guessing that some simple code needs to be added to the xml file??

Quote:




<?xml version="1.0" encoding="UTF-8"?>
<menu>
<gallery name="Holiday">
<image source="pics/pic1.jpg" thumb="pics/th1.jpg" title="Black Helium Acrylic On Wooden Panel 39.5 x 12.5 2004"/>
<image source="pics/pic2.jpg" thumb="pics/th2.jpg" title="Party"/>
<image source="pics/pic3.jpg" thumb="pics/th3.jpg" title="Bench"/>
<image source="pics/pic4.jpg" thumb="pics/th4.jpg" title="Lights"/>
<image source="pics/pic5.jpg" thumb="pics/th5.jpg" title="Agreement"/>
<image source="pics/pic6.jpg" thumb="pics/th6.jpg" title="Landscape"/>
<image source="pics/pic7.jpg" thumb="pics/th7.jpg" title="Face"/>
<image source="pics/pic8.jpg" thumb="pics/th8.jpg" title="Sunset"/>
<image source="pics/pic9.jpg" thumb="pics/th9.jpg" title="My Girlfriend"/>
<image source="pics/pic1.jpg" thumb="pics/th1.jpg" title="Earth"/>
<image source="pics/pic2.jpg" thumb="pics/th2.jpg" title="Party"/>
<image source="pics/pic3.jpg" thumb="pics/th3.jpg" title="Bench"/>
<image source="pics/pic4.jpg" thumb="pics/th4.jpg" title="Lights"/>
<image source="pics/pic5.jpg" thumb="pics/th5.jpg" title="Agreement"/>
<image source="pics/pic6.jpg" thumb="pics/th6.jpg" title="Landscape"/>
<image source="pics/pic7.jpg" thumb="pics/th7.jpg" title="Face"/>
<image source="pics/pic8.jpg" thumb="pics/th8.jpg" title="Sunset"/>
<image source="pics/pic9.jpg" thumb="pics/th9.jpg" title="My Girlfriend"/>
<image source="pics/pic1.jpg" thumb="pics/th1.jpg" title="Earth"/>
<image source="pics/pic2.jpg" thumb="pics/th2.jpg" title="Party"/>
<image source="pics/pic3.jpg" thumb="pics/th3.jpg" title="Bench"/>
<image source="pics/pic4.jpg" thumb="pics/th4.jpg" title="Lights"/>
<image source="pics/pic5.jpg" thumb="pics/th5.jpg" title="Agreement"/>
<image source="pics/pic6.jpg" thumb="pics/th6.jpg" title="Landscape"/>
<image source="pics/pic7.jpg" thumb="pics/th7.jpg" title="Face"/>
<image source="pics/pic8.jpg" thumb="pics/th8.jpg" title="Sunset"/>
<image source="pics/pic9.jpg" thumb="pics/th9.jpg" title="My Girlfriend"/>
</gallery>
<gallery name="Birthday">
<image source="pics/pic5.jpg" thumb="pics/th5.jpg" title="Agreement"/>
<image source="pics/pic6.jpg" thumb="pics/th6.jpg" title="Landscape"/>
<image source="pics/pic7.jpg" thumb="pics/th7.jpg" title="Face"/>
<image source="pics/pic8.jpg" thumb="pics/th8.jpg" title="Sunset"/>
<image source="pics/pic9.jpg" thumb="pics/th9.jpg" title="My Girlfriend"/>
</gallery>
<gallery name="Christmas">
<image source="pics/pic4.jpg" thumb="pics/th4.jpg" title="Lights"/>
<image source="pics/pic5.jpg" thumb="pics/th5.jpg" title="Agreement"/>
<image source="pics/pic6.jpg" thumb="pics/th6.jpg" title="Landscape"/>
</gallery>
<gallery name="New Year">
<image source="pics/pic6.jpg" thumb="pics/th6.jpg" title="Landscape"/>
<image source="pics/pic7.jpg" thumb="pics/th7.jpg" title="Face"/>
<image source="pics/pic8.jpg" thumb="pics/th8.jpg" title="Sunset"/>
<image source="pics/pic1.jpg" thumb="pics/th1.jpg" title="Earth"/>
<image source="pics/pic2.jpg" thumb="pics/th2.jpg" title="Party"/>
<image source="pics/pic3.jpg" thumb="pics/th3.jpg" title="Bench"/>
</gallery>
</gallery>


i tried stuff like <b> </b> but it just wouldnt work.





any help with this would be much appreciated.. if anyone has any ideas or different ways of doing this.. im all for it!

thanks


ps. this is where i got the gallery in the first place:
http://kirupa.com/forum/showthread.php?t=87388

Scotty's Image Resizing Gallery Question...
I m trying to use scotty's infinite resizing image gallery for a project of mine and I was wondering if there was any way to make a vertical scroller for the thumbnails on the left of the actual image with two rows of images rather than just one. I'm new to the forum and I see that a lot of people get helped and I was hoping that someone here might be able to help. Thank you.

Tweaks To Scotty's Image Resize Gallery
Before I go and spend a number of hours trying to figure it out - has anyone made the following improvements to Scotty's "V3_with_thumbs" gallery?

http://www.kirupa.com/forum/showthread.php?t=87388

1) Gallery menu is fed by the XML doc and not hardcoded in Flash.

2) Next and Previous buttons (in addition to the thumbnail buttons)

3) Icing on the cake: "Slideshow" button that loops through the chosen gallery thumbnails. Probably needs to be a toggle button to stop the loop too.

Changing Thumb Size With Scotty's Gallery Files
Hi, I'm new here and I've done a search to see if this issue has been covered before, but I didn't find anything.

I'm working with "V3_thmbs_scrll_btn.fla", one of Scotty's image gallery files, and I'm wanting to change the thumb size from 40px to 60px. I've editied the thumb and thumbs_nav MCs to be 62x62px (with some padding for the new thumbs, since they were 44px before) and the thumbnails are messed up. They are stacked partway on top of each other, and changing the size of the textScroller and theMask MC to 200px (so three thumbs can be in a row) doesn't seem to help things much.

I did notice that the AS uses some code like this:

Code:
thb._x = i%3*50;
thb._y = Math.floor(i/3)*50;
I've played around with deleting and changing things and realize that that snippet of code modifies things as well, but I don't know enough yet to figure out what thb._x and thb._y does, except that they are related to the thumbnail buttons.

In summary, I'm changing the size of my thumbnails to 60px vs. 40px, and I'd can't figure out how to get them to line up nicely like they did when using the 40px thumbs. I've attached a screenshot of what I'm seeing to help out.

Thanks for your time.

Adding Fancy Border To Scotty's Image Gallery
I'm encountering a weird glitch when I try to use a more complex image border: the image container and the text caption both jump into place at the last moment. A bad effect. All I've done is add two more variables, "w2" and "w3" to the code:


Code:
var w = container._width+spacing, h = container._height+spacing;
var w2 = container._width+space2, h2 = container._height+space2;
var w3 = container._width+space3, h3 = container._height+space3;
border.resizeMe(w, h, id);
border2.resizeMe(w2, h2, id);
border3.resizeMe(w3, h3, id);
The effect can be see here:
http://www.tornedgedesign.com/_test/...i_borders.html

The only way I can find to keep the border shapes in correct proportion is to create 3 different border clips and apply the "resizeMe" easing function to each of them.

Files are here - thanks for any help:
http://www.tornedgedesign.com/_test/...ti_borders.zip

Gallery Help Needed
Hi there!

I'm building a gallery that loads jpg's dynamically. So far so good. My problem are the transitions between the images.
I'd really like them to change using a tint effect to get the highlights in hte images before it "tints" to white and the next image tints from white to normal...
I haven't been able to find anything on scripting a tint dynamically to use as transition in a gallery.

I'd really appreciate any help that could at least guide me in the general direction. Scripting is not really my strongest side, so my guess would be some sort of prototype perhaps?...

Gallery Help Needed
Hi there!

I'm building a gallery that loads jpg's dynamically. So far so good. My problem are the transitions between the images.
I'd really like them to change using a tint effect to get the highlights in hte images before it "tints" to white and the next image tints from white to normal...
I haven't been able to find anything on scripting a tint dynamically to use as transition in a gallery.

I'd really appreciate any help that could at least guide me in the general direction. Scripting is not really my strongest side, so my guess would be some sort of prototype perhaps?...

Photo Gallery Needed
I was wondering if anyone can get me in the right direction..
I want to create a photogallery with thumbnails that are clicked and open in a larger preview window.. Then be able to download the image also.. There would be a lot of thumbnails ands pictures.. So would like it to be dynamic.. I am not that great at actionscript or XML but able to follow tutourial..

I would like this to load into a main movie. So dont have another window popping up.

thanks...

[F8] Picture Gallery Help Needed
Hi,
I've created a picture gallery that works like this:

I load all the images into the movie on the first frame into thumbnail movieclips ("1" to "4"), like so:

loadMovie("images/1.jpg", "1");
loadMovie("images/2.jpg", "2");
loadMovie("images/3.jpg", "3");
loadMovie("images/4.jpg", "4");

Then when you click on a thumbnail button:

on (release) {
gotoAndPlay("open");
place = "images/1";
}

it loads the corresponding pic full size into the main movieclip ("large"):

loadMovie(place+".jpg", "large");


My problem is, I need to create a "previous" and "next" button so that once an image is open in "large" you can just flick between the pics without having to go back to the thumbnails. Can anyone help please?

Thanks,
Bilbo

[F8] Thumbnail Gallery Help Needed
Hello,

I'm a bit new to this and I've been searching around for ages to try and get a solution to this so I was hoping that someone here may be able to help out!

I have created a Gallery based on Kirupas XML & Flash Photo Gallery: http://www.kirupa.com/developer/mx2004/thumbnails.htm
What I am trying to do with it is that I don't need the bigger images to load above the thumbnails, I would like it that when the user clicks on a thumbnail it centres on the stage and increases in size thus pushing the thumbnails either side of it to move slightly so they are still an equal distance away from it. When the larger image is clicked again, it will shrink back into its place in the row of thumbnails.

The effect I am after is similar to the attached swf, but I don't want the scroll images to continue under the main clicked image.

I hope someone can help me out with this, as I nearly have no hair left!!!

Thanx in advance.

[CS3] Flash XML Gallery Help Needed Bad
Hi all, I'm a Flash newbie and I've been trying to create an XML gallery based on the simple gallery tutorial here (Flash CS3). It's meant to just load the pictures and move forward and backwards with a prev/next button. I'm trying to get it to loop once it reaches the last picture back to the first but can't seem to do it. Here's my code for the prev and next buttons:

function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();

}

}

I'd also like for it to load the pictures in the center of the image_mc and not load with fade in/fade out transitions. Is that possible?

Hopefully someone can help, I've got tufts of bare skin on my head where skin used to be!

Thanks in advance!

[CS3] Photo Gallery - Help Needed
Hello everybody,

I want to design a flash image gallery fetching an xml file, I can fetch xml, load images to flash however i can not make images clickable, I mean i can not access movie clip actions.

Here is my code:

PHP Code:




for ( var i : Number = 0 ; i < items.length ; i ++ ) {
        this.createEmptyMovieClip("img"+i, getNextHighestDepth());
        this["img"+i].loadMovie(items[i].childNodes[0].firstChild);
        setProperty("img"+i,_x,i*130);
        setProperty("img"+i,_y,-97);
        setProperty("img"+i,_name,"img"+i);

        this[img+i].onRelease = function() {
            getURL("http://");
        };
    
    }







I'm a newbie in this flashy things, Can you help me? I'm trying to put links on every image loaded into flash, each will link to other websites?

Can you also explain how i can put rollover styles to those images?

Thanks

Help Needed For Photo Gallery
Hi,

I downloaded a applet for a rotating flash photo gallery. However, I can't see any instructions for how to modify the actionscript...There are a few comments, but they dont seem to be sufficient.

Here is the script a part of the gallery:

// prototype function for fixing the scaling and position of images

movieclip.prototype.do_me = function () {
var w = 540;
var h = 400;
var k = this._width / this._height;

if (k > 1.35) {
this._width = 540;
this._yscale = this._xscale;
this._y=0-(this._height/2);
this._x=0-(this._width/2);
} else {
this._height = 400;
this._xscale = this._yscale;
this._y=0-(this._height/2);
this._x=0-(this._width/2);
}
}

var ap="{parameterstorage}";
var ts="{timestamp}";
var panel=parseInt("{panel}",10);
var radius=parseInt("{radius}",10);

var ysens=parseInt("{ysens}",10);
var xsens=parseInt("{xsens}",10);
var mousespeed=parseInt("{mousespeed}",10);
var minspeed=parseInt("{minspeed}",10);
var breakfactor=parseInt("{breakfactor}",10);
var zoomtime=parseInt("{zoomtime}",10);
var zoomamount=parseInt("{zoomamount}",10);
var sbg = parseInt("{sbg}",10);
var square = parseInt("{square}",10);

var urls="{urls}";
var target="{target}";

var cmode = parseInt("{cmode}",10);

var backgroundcolor=parseInt("{backgroundcolor}");
var bgi="{backgroundimage}";

var width=parseInt("{width}",10);
var height=parseInt("{height}",10);
var maxitems=parseInt("{maxitems}",10);

/*
var ts=-1;

var maxitems=5;
var panel=22;
var radius=250;

var ysens=100;
var xsens=10;
var mousespeed=60;

*/
if (minspeed<=0) {
minspeed=5;
}
minspeed/=100;
if (Math.abs(breakfactor)>10) {
breakfactor=10;
}
breakfactor/=10;
if (zoomtime<0) {
zoomtime=2;
}
zoomtime*=50;
/*
var zoomamount=2;

var urls="

Photo Gallery Help Needed
I followed this tutorial,
http://www.kirupa.com/developer/mx/photogallery.asp

but ive got one problem...
my pictures keep veering off to the side,
is there a way to keep them in the center?

XML Photo Gallery Help Needed
Hi, I used the Photo Gallery Using XML and Flash tutorial to begin creating a photo album. This is my first time using XML and I have been using Flash for some time but I am by no means an actionscript expert and I'm wanting to expand on what was in the tutorial but have run into some questions. If anyone is able to offer any input or suggestions I would be entirely grateful!!!

The start of my photo album can be viewed here:
http://www.12muddypaws.com

What I plan to do is have several different "sections" that will load a different xml file when clicked (like the 3 categories listed - baby catori, first snow, second snow which I have started but are not yet functioning). What I have tried is adding a load movie to the text links, and this is working but the photos appear to load slower and it makes the fade appear somewhat choppy. You can see an example of what's happening here:
http://www.12muddypaws.com/test/ and click on the word "test".

Is there is a different way this should be done?

Thanks in advance!

Help Needed With Dynamic Gallery
Hello everybody!

I need help with a dynamic flash gallery im trying to create. As an example, im using vman's gallery, found here: http://www.kirupa.com/forum/showthre...allery+folders

i have a movieclip that has two frames,on the first frame i have AS that loads the folder names(the folders hold pics) in and displays them as buttons, this i got done...

Now on the second frame i have a containerMC wich should hold the pics, when you press the folder button, it should load the pics from that loader. Also on the second frame i have back and next buttons. Basically the gallery looks like the kirupa basic photo gallery: http://www.kirupa.com/developer/mx/photogallery.htm

i need that those pics would be kind of thumbs to display a much larger pic....
and i got lost in the code, so i could need some advice......


Code:
count_folders = new LoadVars ();
count_folders.onLoad = function (success) {
if (success) {
folder_array = this.foldernames.split (",");
folder = folder_array[0];
for (i = 0; i < folder_array.length - 1; i++) {
_root.textButton_MC.attachMovie ("textbutton", "textbutton" + i, i, {_x:startX, _y:startY});
buttonName = folder_array[i];
_root.textButton_MC["textbutton" + i].showText.text = buttonName;
_root.textButton_MC["textbutton" + i].folderName = buttonName;
_root.textButton_MC["textbutton" + i].onRelease = function () {
_root.folder = this.folderName;
};
startY = (cnt % numColumns == 0) ? 0 : startY + _root.textButton_MC["textbutton" + i]._height + 10;
//startX = (cnt % numColumns == 0) ? startX + _root.textButton_MC["textbutton" + i]._width : startX;
};
}
};
count_folders.sendAndLoad ("http://localhost/galerii/foldercounter.php", count_folders, "POST");

changeGallery = function () {
count_thumbs = new LoadVars ();
count_thumbs.folder = folder;
count_thumbs.onLoad = function (ok) {
if (ok) {
i = 0;
cnt = 1;
startX = 0;
startY = 0;
//_root.thumbMC._y = 10;
//_root.thumbMC._x = 17;
thumb_array = this.filenames.split (",");
_root.picNum = thumb_array[0];
_root.arrayLength = thumb_array.length - 2;
_root.containerMC.loadPic (folder + "/pildid/" + thumb_array[0]);
for (i = 0; i < thumb_array.length - 1; i++) {
_root["file" + i] = thumb_array[i];
filename = thumb_array[i];
//thumbMC.thumbScroller.thumbHolder["box" + i].container.loadMovie ("Gigs/" + folder + "/thumbs/" + filename);
//thumbMC.thumbScroller.thumbHolder["box" + i].targPic = filename;
//thumbMC.thumbScroller.thumbHolder["box" + i].targNum = i;
//thumbMC.thumbScroller.thumbHolder["box" + i].onRelease = function () {
containerMC.loadPic (folder + "/pildid/" + this.targPic);
_root.current = this.targNum;
_root.galleriesUp = 0;
_root.picNum = this.targPic;
};
}
}
};
_root.containerMC.loadPic (folder + "/pildid/" + _root.picNum);
count_thumbs.sendAndLoad ("http://localhost/galerii/thumbcounter2.php", count_thumbs, "POST");

_root.back.onRelease = function () {
if (current == 0) {
containerMC.loadPic (folder + "/pildid/" + [file0]);
current = 0;
//cur_img.text = current;
} else {
current = current - 1;
containerMC.loadPic (folder + "/pildid/" + _root["file" + current]);
}
};
_root.next.onRelease = function () {
if (current == arrayLength) {
containerMC.loadPic (folder + "/pildid/" + _root["file" + current]);
current = arrayLength;
} else {
current = current + 1;
containerMC.loadPic (folder + "/pildid/" + _root["file" + current]);
}
};
stop();

Photo Gallery Help Needed
Hello, I am very new to the world of flash... so maybe you young guys will go easy on me. Anyways, I was trying to create a photo gallery (using the tutorial on http://www.kirupa.com/developer/mx/photogallery.htm) for my site and I spent a long time making sure I understood what everything did in the actionscript. But for the life of me, I couldn't understand why it wouldn't work. Instead of showing the picture normally it kept flashing in the lower left corner of the movie screen.

Can someone please donate their efforts to try and explain what I could have done wrong?

Photo Gallery Help Needed
I know that photo galleries are the most demanded fla. and tutorials out there with mx's new features that allow for easier building and dynamic image importing, but for people using flash 5, are there photo gallery tutorials and source files available, because I can't find any and the few I did find are either heavily guarded - meaning people will show the example of it but not offer a tutorial or source or they will if you pay for it. Is there some place I can go to find a good tutorial or source files for flash 5 photo galleries that import the images from the server side?

Help Needed With Photo Gallery....
Hi there,

In need some help with the photo gallery from http://www.kirupa.com/developer/mx20...otogallery.htm which is a great gallery but I want an extra feature.

Is it possible to browse through folders which are made in the xml file like this:



Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<folder>
<name>Vacation 2005</name>
<images>
<pic>
<image>http://www.bazelmans.nl/medialab3.jpg</image>
<caption>Kresge</caption>
<thumbnail>http://www.kirupa.com/developer/mx2004/pg/kresge_sm.jpg</thumbnail>
<link>http://web.mit.edu/evolving/projects/kresge/</link>
</pic>
And the have a selection of which folder you like to browse in the lower part of the gallery (so it becomes a photo album).

Thanks in advance...

McFly...

Help Advice Needed On Gallery
hi all,

im slowly learning flash but Im still a little unsure about how to go about things so maybe someone could offer me some advice. I know next to nothing about how to go about doing this..I don't really know where to start....more than anything else I just need to know how to structure somthing like this!




things I would like to do....

buttons will be faded, when mouse rolls over they will become none faded...they also need to scroll up and down with the use of the scroll bars.

when buttons are clicked the full image will be reviled..the full image will fade up (maybe getting brighter and fading down)...also, above the image (blue strip) will show client and project names.

Iv seen a few tuts on how to create a gallery, but they all have "next" button that just runs though a sequence of images, I need individual buttons to match individual images (and titles)

thanks for reading, and thanks for any advice!

Photo Gallery Help Needed
Hi everyone,

This is my first post here.

I’m building a photo gallery and would appreciate a little help. The gallery uses movieclip thumbnail images with an up and an over state, which when clicked loads the main image. This all works reasonably well. The problem is I want the thumbnail image to remain in the over state whilst the main image is being viewed. At present, as soon as the mouse moves off the thumb it reverts to the up state.

Despite spending a lot of time searching the web and looking at many books, I’ve been unable to find an answer. Can anyone here help?

Thanks in advance

Standard Gallery Help Needed.
I'm using the standard gallery

I just need to be able to link through the pics to another page.
Code:
delay = 3000;
//-----------------------
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
firstImage();

} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {

prevImage();

} else if (Key.getCode() == Key.RIGHT) {

nextImage();

}
picture.onRollOver = function () {
stop();
}
picture.onRollOut = function () {
play();
}
};
p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (picture._alpha<100) {

picture._alpha += 10;

}

}

};
function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}
function slideshow() {

myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {

clearInterval(myInterval);
if (p == (total-1)) {

p = 0;
firstImage();

} else {

nextImage();

}

}

}

Much Needed Photo Gallery Help
I am having a huge problem with trying to get a photo gallery to work. I was working with a flash and xml photo gallery that i found online and i was able to partly edit it however i didn't get it fully working. However my huge problem right now is i am making a website in flash 8 i already have the site and it is all on one swf. So when and if i ever find a good flash photo gallery how can i incorporate that into my flash site without embedding it into another html site. I am also not even really looking for a photo gallery really i am just interested in putting some thumbnails on my site and when some one clicks them they get larger. I would like some cool effects as they get larger. However i have searched everywhere and couldn't find something like this. Please if anyone could help please do. I am not really sure on how to add other swf movies to my current flash site. Thanks for all the help so far.

Help Needed On Creating Pic Gallery
on the tutorial from kirupa.com,

how can i enable a hyperlink to pop up with each different image so that users are able to download the images ???

XML Photo Gallery Help Needed
Hi, I used the Photo Gallery Using XML and Flash tutorial to begin creating a photo album. This is my first time using XML and I have been using Flash for some time but I am by no means an actionscript expert and I'm wanting to expand on what was in the tutorial but have run into some questions. If anyone is able to offer any input or suggestions I would be entirely grateful!!!

The start of my photo album can be viewed here:
http://www.12muddypaws.com

What I plan to do is have several different "sections" that will load a different xml file when clicked (like the 3 categories listed - baby catori, first snow, second snow which I have started but are not yet functioning). What I have tried is adding a load movie to the text links, and this is working but the photos appear to load slower and it makes the fade appear somewhat choppy. You can see an example of what's happening here:
http://www.12muddypaws.com/test/ and click on the word "test".

Is there is a different way this should be done?

Thanks in advance!

Help Needed With Dynamic Gallery
Hello everybody!

I need help with a dynamic flash gallery im trying to create. As an example, im using vman's gallery, found here: http://www.kirupa.com/forum/showthre...allery+folders

i have a movieclip that has two frames,on the first frame i have AS that loads the folder names(the folders hold pics) in and displays them as buttons, this i got done...

Now on the second frame i have a containerMC wich should hold the pics, when you press the folder button, it should load the pics from that loader. Also on the second frame i have back and next buttons. Basically the gallery looks like the kirupa basic photo gallery: http://www.kirupa.com/developer/mx/photogallery.htm

i need that those pics would be kind of thumbs to display a much larger pic....
and i got lost in the code, so i could need some advice......


Code:
count_folders = new LoadVars ();
count_folders.onLoad = function (success) {
if (success) {
folder_array = this.foldernames.split (",");
folder = folder_array[0];
for (i = 0; i < folder_array.length - 1; i++) {
_root.textButton_MC.attachMovie ("textbutton", "textbutton" + i, i, {_x:startX, _y:startY});
buttonName = folder_array[i];
_root.textButton_MC["textbutton" + i].showText.text = buttonName;
_root.textButton_MC["textbutton" + i].folderName = buttonName;
_root.textButton_MC["textbutton" + i].onRelease = function () {
_root.folder = this.folderName;
};
startY = (cnt % numColumns == 0) ? 0 : startY + _root.textButton_MC["textbutton" + i]._height + 10;
//startX = (cnt % numColumns == 0) ? startX + _root.textButton_MC["textbutton" + i]._width : startX;
};
}
};
count_folders.sendAndLoad ("http://localhost/galerii/foldercounter.php", count_folders, "POST");

changeGallery = function () {
count_thumbs = new LoadVars ();
count_thumbs.folder = folder;
count_thumbs.onLoad = function (ok) {
if (ok) {
i = 0;
cnt = 1;
startX = 0;
startY = 0;
//_root.thumbMC._y = 10;
//_root.thumbMC._x = 17;
thumb_array = this.filenames.split (",");
_root.picNum = thumb_array[0];
_root.arrayLength = thumb_array.length - 2;
_root.containerMC.loadPic (folder + "/pildid/" + thumb_array[0]);
for (i = 0; i < thumb_array.length - 1; i++) {
_root["file" + i] = thumb_array[i];
filename = thumb_array[i];
//thumbMC.thumbScroller.thumbHolder["box" + i].container.loadMovie ("Gigs/" + folder + "/thumbs/" + filename);
//thumbMC.thumbScroller.thumbHolder["box" + i].targPic = filename;
//thumbMC.thumbScroller.thumbHolder["box" + i].targNum = i;
//thumbMC.thumbScroller.thumbHolder["box" + i].onRelease = function () {
containerMC.loadPic (folder + "/pildid/" + this.targPic);
_root.current = this.targNum;
_root.galleriesUp = 0;
_root.picNum = this.targPic;
};
}
}
};
_root.containerMC.loadPic (folder + "/pildid/" + _root.picNum);
count_thumbs.sendAndLoad ("http://localhost/galerii/thumbcounter2.php", count_thumbs, "POST");

_root.back.onRelease = function () {
if (current == 0) {
containerMC.loadPic (folder + "/pildid/" + [file0]);
current = 0;
//cur_img.text = current;
} else {
current = current - 1;
containerMC.loadPic (folder + "/pildid/" + _root["file" + current]);
}
};
_root.next.onRelease = function () {
if (current == arrayLength) {
containerMC.loadPic (folder + "/pildid/" + _root["file" + current]);
current = arrayLength;
} else {
current = current + 1;
containerMC.loadPic (folder + "/pildid/" + _root["file" + current]);
}
};
stop();

Photo Gallery Help Needed
Hello, I am very new to the world of flash... so maybe you young guys will go easy on me. Anyways, I was trying to create a photo gallery (using the tutorial on http://www.kirupa.com/developer/mx/photogallery.htm) for my site and I spent a long time making sure I understood what everything did in the actionscript. But for the life of me, I couldn't understand why it wouldn't work. Instead of showing the picture normally it kept flashing in the lower left corner of the movie screen.

Can someone please donate their efforts to try and explain what I could have done wrong?

Copyright © 2005-08 www.BigResource.com, All rights reserved