11 Replies Latest reply on Dec 27, 2007 7:02 AM by kglad

    Attached MC targeting issues

      I have a file that on the main timeline I have placed a scrollPane. The instance name of this scrollpane is categories. Into this frame at runtime I attach movie clips via the following line of code:

      var mcMain:MovieClip;
      categories.contentPath = "CategoryMovieClip";
      mcMain = categories.content;
      mcMain.attachMovie('CategoryMovie', 'category'+number, mcMain.getNextHighestDepth(), {_y:20*i+5, _x:5});

      where number increments for zero to three.

      CategoryMovie contains two elements, a graphical element, and a dynamic text element, the instance name of which is: category_name.

      I have tried changing the text value of the individual movie clips every way that I can think of, but to no avail as nothing seems to work. Could anyone please help me figure out how I need to target the dynamic text in order to get it to change, or if there is a much better way of being able to dynamically control the number of instances of a movie clip within a swf file and still be able to target the dynamic text fields please let me know.

      Thanks in advance,