2 Replies Latest reply on Jan 21, 2008 3:41 AM by dr_ross

    array trouble

    lammspillning Level 1
      Is it possible to run threw a array if I run it from another movieclip?
      I have an array and a function on the root timeline. And in a movieclip I have a button that should run threw the array and the function when I press it.
      I can't get it to work.. any suggestions?
        • 1. array trouble
          dr_ross Level 1
          double post
          • 2. Re: array trouble
            dr_ross Level 1
            well you just need to narrow down the issue, check that the function is being called when you action the button with a trace command.

            Then you need to check how you are referencing the array,

            you could either do a quick hack,

            //on root
            _root.myArray = [1,2,3,4];


            //on button nested anywhere
            trace(_root.myArray);

            or have the code applied to the button from the root as well then scope back using _parent or a path variable