# Use of array's MX2004

**URL:** <https://forum.kirupa.com/t/use-of-arrays-mx2004/37735>\
**Category:** Uncategorized\
**Created:** [December 13, 2003, 5:31pm UTC](https://forum.kirupa.com/t/use-of-arrays-mx2004/37735 "2003-12-13T17:31:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernandez](https://avatars.discourse-cdn.com/v4/letter/f/58f4c7/32.png) [@Fernandez](https://forum.kirupa.com/u/Fernandez)\
**Post date:** [December 13, 2003, 5:31pm UTC](https://forum.kirupa.com/t/use-of-arrays-mx2004/37735/1 "2003-12-13T17:31:52Z")

</div>

I am not really good in AS, i know somehow it is more easy to use array’s for the  
AS below. Could somebody help me to explain and show me how i can fix the AS below with the use of an array? It’s for my own portfolio… the array should contain 12 ‘items’.

Thanks  
FD

* * *

Actionscript:

\_root.mcclients.createEmptyMovieClip(“work01”, 1);  
work01.loadMovie(“workfolder/work01.jpg”);  
work01.\_x = 10 ;  
work01.\_y = 10 ;

onEnterFrame = function () {  
work01.onRelease = Release;  
}

function Release() {  
gotoAndPlay(1);  
}

\_root.mcclients.createEmptyMovieClip(“work02”, 2);  
work02.loadMovie(“workfolder/work02.jpg”);  
work02.\_x = 92 ;  
work02.\_y = 10 ;

\_root.mcclients.createEmptyMovieClip(“work03”, 3);  
work03.loadMovie(“workfolder/work03.jpg”);  
work03.\_x = 174 ;  
work03.\_y = 10 ;

* * *
