4 Replies Latest reply on Feb 11, 2007 8:22 PM by NewYorkled

    Passing a variable into a Function?

      I simplified my original code as much as possible to show what I need.
      From the code below, I need to trace (x) so that it doesn't show the top value of 5.
      Actually, I need to be able to recognise which of the attachedMovieClip s have been pressed so's to do a getURL based on it.
      Can anyone help? Thanks.

      myButt.onRollOver = function() {
      var a = 0;
      for (var x = 0; x<5; x++) {
      var myClip = _root.attachMovie("Clip", "Clip"+a, a++);
      myClip._x = myClip._width*x;
      myClip.onPress = function() {