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.
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”. 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
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?
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
–EP