# Dynamic Array Problems

**URL:** <https://forum.kirupa.com/t/dynamic-array-problems/113180>\
**Category:** Uncategorized\
**Created:** [June 15, 2004, 7:01pm UTC](https://forum.kirupa.com/t/dynamic-array-problems/113180 "2004-06-15T19:01:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![th3Phallex](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@th3Phallex](https://forum.kirupa.com/u/th3Phallex)\
**Post date:** [June 15, 2004, 7:01pm UTC](https://forum.kirupa.com/t/dynamic-array-problems/113180/1 "2004-06-15T19:01:03Z")

</div>

(see [this](http://www.kirupaforum.com/forums/showthread.php?t=59111) thread first.)

I’ve tried using a LoadVariable command to load the names of picture files from a .txt file.

They are supposed to be loaded into an Array.

When I test the movie, it will trace the array to the output panel, and show me the filenames correctly. BUT, when I go to load the picture (using LoadMovie), in the output panel it says:

\*\*\*Error opening URL "\*\*\*[_**file:///C|/Inetpub/flash/images/\*\*\*](file:///C|/Inetpub/flash/images/)\*\*\*"**_

It shows up like it’s not seeing a filename to load.

Why is this? What can I do to fix it?  
:puzzle: :h: :puzzle:

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 3:33pm UTC](https://forum.kirupa.com/t/dynamic-array-problems/113180/2 "2004-06-16T15:33:09Z")

</div>

I still need help with this issue.

Has anyone else had this problem?

Any help would be appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 3:40pm UTC](https://forum.kirupa.com/t/dynamic-array-problems/113180/3 "2004-06-16T15:40:56Z")

</div>

Do you do something like:

```auto

myPlaceHolder.loadMovie(MyArray[0]);

```

for instance?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 4:02pm UTC](https://forum.kirupa.com/t/dynamic-array-problems/113180/4 "2004-06-16T16:02:15Z")

</div>

> [@eki](#):
>
> Do you do something like:
> 
> ```auto
> myPlaceHolder.loadMovie(MyArray[0]);
> 
> ```
> 
> for instance?

Yes!

Actually, I just got it to work using the following:

**Frame 1:**

```auto

lv = new LoadVars();
lv.load("arrayText.txt");
lv.onLoad = function(ok){
if(ok){
trace(this.MyArray.split(","));
arrayText = this.MyArray.split(",");
} 
else {
trace("An error occured while loading the data!");
}
}

```

**Frame 5:**

```auto

stop();
this.pathToPics = "C:/Alex/flash/experiments/images/";
_root.photo.loadMovie(this.pathToPics+MyArray[0]);

```

I think it had to do with using

```auto
_root.photo.loadMovie(...);

```

instead of

```auto
loadMovie(this.pathToPics+this.MyArray[0], _root.photo);

```

Although, I don’t see how it’s any different. :puzzle:

Oh well. At least it works. :thumb:  
 ![](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/a/5/a5b06035efa8cccce3c9a7a80013e46205dbb16a.gif)  
Thanks for the help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 4:12pm UTC](https://forum.kirupa.com/t/dynamic-array-problems/113180/5 "2004-06-16T16:12:44Z")

</div>

Any time :}
