title: Gradient masking flash
body: <p>i want to put gradient masking effect in my 20 images.</p>
  
  <pre><code>var arr:Array = ["m1.jpg","m2.jpg","m3.jpg","m4.jpg","m5.jpg"];
  
  for(var i=0; i&lt;20; i++){
      duplicateMovieClip(ho, "newImg_mc"+i , this.getNextHighestDepth()); 
      if(i &lt; 5){
          this["newImg_mc"+i]._x = 0;
          this["newImg_mc"+i]._y = 110*i;
          this["newImg_mc"+i].loadMovie(arr[i]);
      }
  
      if(i &gt;= 5 and i &lt; 10){
          this["newImg_mc"+i]._x = 110;
          this["newImg_mc"+i]._y = 110*(i-5);
          this["newImg_mc"+i].loadMovie(arr[i-5]);
      }
  
      if(i &gt;= 10 and i &lt; 15){
          this["newImg_mc"+i]._x = 220;
          this["newImg_mc"+i]._y = 110*(i-10);
          this["newImg_mc"+i].loadMovie(arr[i-10]);
      }
      if(i &gt;= 15 and i &lt; 20){
          this["newImg_mc"+i]._x = 330;
          this["newImg_mc"+i]._y = 110*(i-15);
          this["newImg_mc"+i].loadMovie(arr[i-15]);
      }
  }
  </code></pre>