# Varibles/arrays

**URL:** <https://forum.kirupa.com/t/varibles-arrays/185388>\
**Category:** Uncategorized\
**Created:** [April 12, 2006, 11:08pm UTC](https://forum.kirupa.com/t/varibles-arrays/185388 "2006-04-12T23:08:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)\
**Post date:** [April 12, 2006, 11:08pm UTC](https://forum.kirupa.com/t/varibles-arrays/185388/1 "2006-04-12T23:08:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [April 13, 2006, 2:31am UTC](https://forum.kirupa.com/t/varibles-arrays/185388/2 "2006-04-13T02:31:56Z")

</div>

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

```auto

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

```

dont worry about setting “pic1” or whatever
