# Calling moive from array for attachMovie property

**URL:** <https://forum.kirupa.com/t/calling-moive-from-array-for-attachmovie-property/308167>\
**Category:** flash\
**Created:** [April 18, 2010, 3:22am UTC](https://forum.kirupa.com/t/calling-moive-from-array-for-attachmovie-property/308167 "2010-04-18T03:22:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgesmith](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@georgesmith](https://forum.kirupa.com/u/georgesmith)\
**Post date:** [April 18, 2010, 3:22am UTC](https://forum.kirupa.com/t/calling-moive-from-array-for-attachmovie-property/308167/1 "2010-04-18T03:22:16Z")

</div>

Dear forum members,

I am trying to attachMovie from array.

## Here it goes like this:

var \_\_reg3 = new Array (“1”, “2”, “3”, “4”);

\_root.p1.attachMovie(\_\_reg3[0] + 1, “run1”, 1); – Not working

Then I tried using string:

test1:String = \_\_reg3[0] + 1

\_root.p1.attachMovie(’"+‘test1+’"’, “run1”, 1); – Not working

Then I tried this

\_root.p1.attachMovie(" “” +test1+" “”, “run1”, 1); – Not working

Then used this:

qt:String = ‘"’;

\_root.p1.attachMovie(qt+test1+qt, “run1”, 1); – Not working

But when I use like this, its working:

\_root.p1.attachMovie(“3”, “run1”, 1); – working.

Please help guys.
