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

    parameter problem in functions

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

      function showItem(lx,ly,clip){
      _root.attachMovie("doc1",clip,0);
      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