Varibles/arrays

i’ve got an array which loads image links from a xml file. i keep track of the picture loaded in the movie clip using:

up_Btn.onRelease = function() {

var pic1 = lArray(this.id);

        getURL(pic1, "_blank");
    };

but doesn’t seemtobe working, is this possible?

Sean

var pic1 = lArray(this.id); is wrong…

use “[” and “]” like this

var pic1 = lArray**[COLOR=Red][[/COLOR]this.id[COLOR=Red]][/COLOR]**;

also try this


up_Btn.onRelease = function() {
getURL(lArray[this.id], "_blank");
        };

dont worry about setting “pic1” or whatever