3 Replies Latest reply on Jun 22, 2006 12:09 PM by kglad

    parameter problem in functions

      I have a problem: I want to create a function that add a movie clip instance on the scene.

      function showItem(lx,ly,clip){
      clip._x = lx;
      clip._y = ly;

      the problem lies on the variable clip:
      if the function is called, e.g. showItem(240,120,"clip"); then this won't work because the "clip" variable, which should be without the " " inside the function. How do you solve this small but annoying problem?
      thanks for the help