Topic: path to gallery.xml (multiple)

Hi,



I've got 4 sections with 7 galleries in each - i just wanted to place the gallery1.xml etc in separate folders, how do alter the path in the AS?

on the button here..

mcGal1.onRelease = function(){
    loadGallery(1);   
}

and load function here..

function onLoadInit(){
   
    //set gallery xml name
    _root.xmlDataPath = "gallery"+galleryId + ".xml";
    //set gallery specific options
    if (galleryId == 1){
        com.airtightinteractive.apps.viewers.simpleViewer.Options.imageFrameColor = 0xffffff;
    }else{
        com.airtightinteractive.apps.viewers.simpleViewer.Options.imageFrameColor = 0xffffff;
    }
}

//load first gallery
loadGallery(1);

cheers

Re: path to gallery.xml (multiple)

how do alter the path in the AS?

here:

_root.xmlDataPath = "gallery"+galleryId + ".xml";
Felix Turner
SimpleViewer Support Team.

Re: path to gallery.xml (multiple)

is this right felix

_root.xml.objects.xmlDataPath = "gallery"+galleryId + ".xml";

where i've put gallery1 in folder xml>objects?

Re: path to gallery.xml (multiple)

ah sussed it..

    _root.xmlDataPath = "xml/objects/gallery"+galleryId + ".xml";


thanks