3 Replies Latest reply on Feb 18, 2010 5:01 AM by Ned Murphy

    change button's status in tree menu

    sensiblemind Level 1

      well i had a tree menu which contain about 15 and under each of it about 3 or four sub

      the problem is when i press one of the sub it should gives specific status

      and when i press anther button from anywhere ,the 1st button should B initialized as it was

       

      i  made to var to dedicate which i 've jst pressed

      var num

      var topic

       

      +num1

      -topic1

      -topic2

      +num2

      -topic1

      -topic2

      and the code i put on buttons is

       

      on (release) {

       

      if (_root.topic<>2) {

      gotoAndStop(3);

      trace(["topic"+_parent.topic])

      _parent.["m"+_parent.num].["topic"+_parent.topic].gotoAndStop(1);

      _parent.num = 1;

      _parent.topic = 1;

      }

       

      but ths line of code seems to have such problem

      _parent.["m"+_parent.num].["topic"+_parent.topic].gotoAndStop(1);

      can any one help ??

      thnx