title: accessing array elements in another frame as3
body: <p>I have created an Array in frame 1 and dynamically create a list of movieclips with it , and I want to create the same Array in frame 3 and those movieclips again if something is true or false.is it possible ? because when I'm trying to do this , I will get this error :
  1151: A conflict exists with definition i in namespace internal.</p>
  
  <p>here is my code at frame 1 : </p>
  
  <pre><code>stop(); 
  import flash.display.MovieClip;
  var p_x:uint = 90;
  var p_y:uint = 108;
  var my_list:String = "Games,Videos, Medias,Images,Photos,Personal Photos,Social                  Media,Private,Social,None,Names,Families";
  var myListString:Array = my_list.split(",");
  var myArray:Array=new Array ();
  var listObject = 1;
  for (var i:uint=0; i&lt;12; i++)
  {
      var myItemList:mrb=new mrb();
      myItemList.x = p_x;
      myItemList.y = p_y + 80;
      myItemList.y = (p_y + (listObject * 65));
      myArray.push(myItemList);
      myItemList.txt.text = i.toString();
      myItemList.txt.text = myListString[i].toString();
      myItemList.name = "item"+i; 
      addChild(myItemList) as MovieClip ;
      listObject++;
  }
  </code></pre>
  
  <p>and here is code at frame 3 :</p>
  
  <pre><code>    var tmpCurFrame:int = currentFrame;
  
      this.addEventListener(Event.ENTER_FRAME, handleUpdate)
  
          function handleUpdate(e:Event):void {
          if (tmpCurFrame != currentFrame) {
            this.removeEventListener(Event.ENTER_FRAME, handleUpdate);
                      return;
                  }
                 if (so.data.fav1 != undefined) 
      {
      if ( so.data.fav1 == "on") 
      {
      for (var i:int = 0; i &lt; myListString.length;)
  {    if (myListString[i].indexOf() &gt; -1)
          {
      var myRectangle:mrb=new mrb();
              trace("found it at index: " + i);
              myRectangle.x = p_x;
              myRectangle.y = (p_y + (findobject * 50));
              trace('p_y+80 =' + (p_y+(findobject*80)) + 'p_x = ' + p_x );
              myArray.push(myRectangle);
              myRectangle.txt.text = myListString[i].toString();
              trace(my_array2[i].toString() );
              addChild(myRectangle);
            }
          }
  
        }      
      }
      else
      {
      fav_1.fav_on.visible=true;
  
         }
  
    }
  </code></pre>