hey, I'm a relative newbie to AS and have hit a snag with a project I'm working on. Its killing me. I'm using AS2 in F8. Basically, I built several fairly large image galleries using Arrays and using back/next buttons to rifle through the pics.
Everything works fine, except that I now need the "slide description" and (1 of _ pics) displayed for each pic.
Below is one of arrays. Sensory is the theme, thus the name of the array. Ideally, when the [1] slot is selected in the array:
the picture 02.Luminare.jpg would be shown in the gallery_mc
it would say 'Luminare' underneath with (2 of 23) next to it. and so on.
Im guessing that I possibly use dynamic text boxes to call a Multidimensional array?? Im having a lot of trouble finding a way to start this...if Im right? Any ideas or guidance to start..? or even a wellknown tutorial? :yikes:
var sensoryArray:Array = new Array();
sensoryArray[0] = "pics/01.sensory/01.hold_your_dreams_crusht.jpg";
sensoryArray[1] = "pics/01.sensory/02.luminare.jpg";
sensoryArray[2] = "pics/01.sensory/03.adam_sandler.jpg";
sensoryArray[3] = "pics/01.sensory/04.sublimation.jpg";
sensoryArray[4] = "pics/01.sensory/05.swimming_in_sky.jpg";
sensoryArray[5] = "pics/01.sensory/06.projectionist.jpg";
sensoryArray[6] = "pics/01.sensory/07.excrutiating_minutae.jpg";
sensoryArray[7] = "pics/01.sensory/08.chair.jpg";
sensoryArray[8] = "pics/01.sensory/09.hangers_in_closet.jpg";
sensoryArray[9] = "pics/01.sensory/10.acid.jpg";
sensoryArray[10] = "pics/01.sensory/11.awesome_cloud.jpg";
sensoryArray[11] = "pics/01.sensory/12.light002.jpg";
sensoryArray[12] = "pics/01.sensory/13.light04.jpg";
sensoryArray[13] = "pics/01.sensory/14.bird_w_sun.jpg";
sensoryArray[14] = "pics/01.sensory/15.conflagrant_happenstance.jpg";
sensoryArray[15] = "pics/01.sensory/16.metal_oxygen.jpg";
sensoryArray[16] = "pics/01.sensory/17.sky_tastes_candy.jpg";
sensoryArray[17] = "pics/01.sensory/18.stadium_full_of_screaming_fans.jpg";
sensoryArray[18] = "pics/01.sensory/19.the_chaotic_city_streets.jpg";
sensoryArray[19] = "pics/01.sensory/20.tree.jpg";
sensoryArray[20] = "pics/01.sensory/21.typical_sunwashd_self_conf.jpg";
sensoryArray[21] = "pics/01.sensory/22.untitled_03.jpg";
sensoryArray[22] = "pics/01.sensory/23.untitled_04.jpg";
var arrayNum:Number = 0;
gallery_mc.loadMovie(sensoryArray[arrayNum]);
//trace(memoryArray.length - 1);
next_btn.onRelease = function(){
nextImage();
}
back_btn.onRelease = function(){
backImage();
}
function nextImage(){
if(arrayNum != sensoryArray.length - 1){
arrayNum++;
//arrayNum = arrayNum + 1;
//trace("arrayNum = " + arrayNum);
gallery_mc.loadMovie(sensoryArray[arrayNum]);
}else {
arrayNum = 0;
gallery_mc.loadMovie(sensoryArray[arrayNum]);
}
}
function backImage(){
if(arrayNum != 0){
arrayNum--;
//trace("arrayNum = " + arrayNum);
gallery_mc.loadMovie(sensoryArray[arrayNum]);
}else {
arrayNum = sensoryArray.length - 1;
gallery_mc.loadMovie(sensoryArray[arrayNum]);
}
}