3 Replies Latest reply on Jul 17, 2008 11:13 AM by Newsgroup_User

    array and gotoAndStop() issue

    ibrubru
      Hi I am try to assign each menu btns to go to designated frames but it doesn't work.
      any idea would be greatly appreciated. thanks.

      var menus = [aboutus, cd, awards, cl, news, contactus];
      var frames = [2,3,4,5,11,12];
      for(var j=0; j<menus.length; j++) {
      menus[j].onRelease = function() {gotoAndStop(frames[j]);};
      }