# LoadMovie command not working in my loop statement!

**URL:** <https://forum.kirupa.com/t/loadmovie-command-not-working-in-my-loop-statement/7337>\
**Category:** Uncategorized\
**Created:** [October 28, 2002, 10:04pm UTC](https://forum.kirupa.com/t/loadmovie-command-not-working-in-my-loop-statement/7337 "2002-10-28T22:04:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![3dron](https://avatars.discourse-cdn.com/v4/letter/3/2acd7d/32.png) [@3dron](https://forum.kirupa.com/u/3dron)\
**Post date:** [October 28, 2002, 10:04pm UTC](https://forum.kirupa.com/t/loadmovie-command-not-working-in-my-loop-statement/7337/1 "2002-10-28T22:04:56Z")

</div>

I have the following which works fine just out side of the loop statement:

loadMovie(“icons/test.jpg”, “pIcon0.Icon”);

But inside the loop statement no image shows up.

I need it in the loop statement because eventually the code will call the jpgs out of an array based on the loop variable. And put them in a movieclip number by the variable also.

Thanks!

Ron

---

<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:** [October 29, 2002, 7:03am UTC](https://forum.kirupa.com/t/loadmovie-command-not-working-in-my-loop-statement/7337/2 "2002-10-29T07:03:03Z")

</div>

um…where are u setting the name of the object?
