1 Reply Latest reply on Jun 16, 2006 11:01 AM by Newsgroup_User

    having problems targeting a movieclip from within a loop

    Level 7
      I am checking an array and need to set an indicator in a movieclip based on
      that value.

      The path to the movieclips(buttons) are:

      Here's what I have but it just fails to work:

      for (i=0; i < courseData.length; i++){
      // array position [3] is the bookmark location
      if (courseData [3] <= 0) {
      // show not started
      ["lesson" + i + "_btn"]indicator_mc.gotoAndStop("not viewed");
      } else if (courseData
      [3] > 0) {
      // show started
      ["lesson" + i + "_btn"]indicator_mc.gotoAndStop("viewed");

      The indicator_mc never goes to any labeled frames.

      I'm using the bracket notation instead of the older eval() method.

      Any help is GREATLY appreciated.