# Gallery Images

**URL:** <https://forum.kirupa.com/t/gallery-images/19261>\
**Category:** flash\
**Created:** [April 25, 2003, 10:05pm UTC](https://forum.kirupa.com/t/gallery-images/19261 "2003-04-25T22:05:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![achild](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@achild](https://forum.kirupa.com/u/achild)\
**Post date:** [April 25, 2003, 10:05pm UTC](https://forum.kirupa.com/t/gallery-images/19261/1 "2003-04-25T22:05:01Z")

</div>

I have created a gallery that loads pictures from the server into a movie clip within Flash MX. This works fine. Now I have been asked to take those pictures that load dynamically and allow them to be a static image so that they can be clicked on enabling the user to view them at an enlarged state.  
Can I create a button that talks to the movie clip allowing the pictures being loaded to pull a pop up window enlarging it?  
Hope this isn’t confusing.

---

<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:** [April 26, 2003, 8:33pm UTC](https://forum.kirupa.com/t/gallery-images/19261/2 "2003-04-26T20:33:10Z")

</div>

You could probably use TellTarget for that, if I understand your problem correctly.

Okay, you have an empty movie clip on your stage that you dynamically load images into. You only have one image displayed at a time on the users screen. You want them to be able to click on this one image and have the bigger image pop up in a new window? Do you want the new window to be a Browser window or just enlarge the movie clip you already have on the stage?

You can set up a conditional in your movie clip that tells (with TellTarget) an invisible button (as in alpha=0; that goes over your image) a variable which is equal to the string location of the bigger version of the image. For example, myvariable = “biggerimage.jpg” or myvariable = “[http://www.yourwebsite.com/biggerimage.jpg](http://www.yourwebsite.com/biggerimage.jpg)”. Then, on the invisible button, use an on(press) which executes a getURL or loadMovie to bring up the larger movie based on the variable you passed with TellTarget.

Post your .fla or at least the code and I can help you more.

–EP

---

<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:** [April 28, 2003, 5:11pm UTC](https://forum.kirupa.com/t/gallery-images/19261/3 "2003-04-28T17:11:00Z")

</div>

Yup! You know exactly what it is that I want to do. Basically here is the code in my actions layer on the first frame:

slides = new Array ([“Brigham Young Winter Home”, “image0.jpg”], [“Our Legacy”, “image1.jpg”], [“Brigham’s View”, “image3.jpg”], [“John Taylor Home”, “image7.jpg”], [“Gateway”, “image9.jpg”], [“Portland Temple”, “image23.jpg”], [“View from Main”, “image16.jpg”], [“City Creek”, “image12.jpg”], [“My Fathers House”, “image21.jpg”], [“State Street Panorama”, “image25.jpg”], [“Celebration”, “image11.jpg”], [“The Beautiful”, “image29.jpg”], [“Deseret”, “image31.jpg”], [“Timp”, “image22.jpg”], [“Mansion House”, “image28.jpg”], [“Seventies Hall”, “image37.jpg”], [“Job Pingree Mill”, “image15.jpg”],  
[“Manti Temple”, “image36.jpg”], [“Logan Temple”, “image35.jpg”], [“From the Rooftops”, “image13.jpg”], [“BYU”, “image10.jpg”], [“The Gate”, “image27.jpg”], [“St. George Temple”, “image26.jpg”], [“Oakland Temple”, “image33.jpg”], [“Draper 1st Ward & Round House”, “image40.jpg”], [“Welcome Gate”, “image41.jpg”], [“FarWest”, “image32.jpg”], [“Neffs Lane”, “image59.jpg”], [“Spring Hill”, “image58.jpg”], [“The Valley”, “image57.jpg”], [“David O. McKay Home”, “image61.jpg”], [“Heber C. Kimball Home”, “image14.jpg”], [“Nephi’s Temple”, “image62.jpg”], [“Bountiful Temple”, “image63.jpg”], [“Brigham Young Home\_NauvooNight”, “image64.jpg”], [“Kirtland Temple”, “image65.jpg”]);  
function changeSlide(number) {  
if (number\>=0 && number\<slides.length) {  
currentSlide = number;  
\_root.title.text = slides[number][0];  
loadMovie(slides[number][1], “\_root.placeholder”);  
}  
}  
historyim = new Array ([“The White House”, “image2.jpg”], [“England”, “image4.jpg”], [“Fairview”, “image5.jpg”], [“Mt. Timp”, “image6.jpg”], [“Louise’s Cottage”, “image8.jpg”], [“Gateway”, “image9.jpg”], [“View from Main”, “image16.jpg”], [“City Creek”, “image12.jpg”], [“Sold Out”, “image39.jpg”], [“State Street Panorama”, “image25.jpg”], [“Mt. Vernon”, “image19.jpg”], [“Montecello”, “image18.jpg”], [“Cobblestones”, “image30.jpg”], [“Timp”, “image22.jpg”], [“Mansion House”, “image28.jpg”], [“Job Pingree Mill”, “image15.jpg”], [“Murray Holladay Road”, “image20.jpg”], [“Santa Claus”, “image24.jpg”], [“The Gate”, “image27.jpg”], [“Sold Out”, “image34.jpg”], [“Midway Hudson”, “image17.jpg”], [“Welcome Gate”, “image41.jpg”], [“The Retreat”, “image42.jpg”], [“The Cove”, “image43.jpg”], [“The Arbor”, “image44.jpg”], [“Sundance”, “image45.jpg”], [“Lone Peak”, “image46.jpg”], [“Old Friends”, “image47.jpg”], [“Country Road”, “image48.jpg”], [“FarWest”, “image32.jpg”], [“Beatrix Potter Home”, “image49.jpg”], [“Beehives”, “image50.jpg”], [“Days End”, “image56.jpg”], [“Double A Dairy”, “image55.jpg”], [“Front Porch Glory”, “image54.jpg”], [“Ginger House”, “image53.jpg”], [“Midway Reflections”, “image60.jpg”], [“Neffs Lane”, “image59.jpg”], [“The Valley”, “image57.jpg”], [“Waterfall”, “image52.jpg”], [“Wendy’s Roses”, “image51.jpg”], [“Back Porch Garden”, “image66.jpg”], [“Mount Olympus”, “image67.jpg”], [“Browning Home”, “image68.jpg”], [“Mount Oly”, “image69.jpg”]);  
function changeHistoryim(number) {  
if (number\>=0 && number\<historyim.length) {  
currentHistoryim = number;  
\_root.title.text = historyim[number][0];  
loadMovie(historyim[number][1], “\_root.historyim”);  
}  
}  
originals = new Array ([“Santa Claus”, “image24.jpg”], [“Nephi’s Temple”, “image62.jpg”], [“Bountiful Temple”, “image63.jpg”], [“Brigham Young Home\_NauvooNight”, “image64.jpg”], [“Kirtland Temple”, “image65.jpg”], [“Mount Olympus”, “image67.jpg”], [“Browning Home”, “image68.jpg”], [“Mount Oly”, “image69.jpg”]);  
function changeOriginals(number) {  
if (number\>=0 && number\<originals.length) {  
currentOriginals = number;  
\_root.title.text = originals[number][0];  
loadMovie(originals[number][1], “\_root.originals”);  
}  
}

I basically have 3 categories and 1 empty movie clip. Each new category pulls a group of images to the movie clip.  
So, as is stands now, my empty movie clip doesn’t have any code within it but there is a button that the user presses to load the images from the server. (this is at the bottom of the screen).

As you know, I am new at FlashMX and have been working in it for a couple of years now, so my telltarget skills are not that great. Can you coach me a little as to what I might do in this scenario?

---

<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:** [April 29, 2003, 10:47am UTC](https://forum.kirupa.com/t/gallery-images/19261/4 "2003-04-29T10:47:41Z")

</div>

If you can, post the actual .fla; it would be easier if i could try trial and error.

If it’s too big to post, email it to me at [pjr@usc.edu](mailto:pjr@usc.edu)

–EP
