2 Replies Latest reply on Oct 11, 2007 6:26 AM by schefz

    using an array to record button click order

    schefz
      I am working on a demo of a UI for a handheld device. I am trying to make a back button that can track the users actions back several steps.

      I started by putting this line of code in my frame 1 actions layer:

      var wherefrom:Array = new Array();

      then i placed this follwing code on several different buttons:

      on(release){
      wherefrom.push("frame_name1");
      gotoAndStop("frame_name2");
      }

      then on the back button i added this following code:

      on(release){
      gotoAndStop(wherefrom.pop());
      }


      it doesnt seem to be working. I was wondering if this type of action is possible using AS2.0? any suggestions would be greatly appreciated.