# How can i simplify this code?

**URL:** <https://forum.kirupa.com/t/how-can-i-simplify-this-code/320773>\
**Category:** Uncategorized\
**Created:** [April 1, 2011, 6:31am UTC](https://forum.kirupa.com/t/how-can-i-simplify-this-code/320773 "2011-04-01T06:31:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liner986](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@liner986](https://forum.kirupa.com/u/liner986)\
**Post date:** [April 1, 2011, 6:31am UTC](https://forum.kirupa.com/t/how-can-i-simplify-this-code/320773/1 "2011-04-01T06:31:52Z")

</div>

hey guys,

i donno anything about arrays yet, i havent touched upon them so far and am ABSOLUTELY planning to.

okey, so heres my question and the pain in my butt;

big\_pic0.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);  
big\_pic.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);  
big\_pic2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);  
…  
big\_pic39

how can i simplify this instead of writing all the commands down line by line?
