5 Replies Latest reply on Jun 9, 2007 7:08 AM by kglad

    Passing a MC to a function - why does it disappear?

      Hi there,

      i'm refreshing myself on how AS works. I'm just testing out basic button code but the wierdest thing is happening.

      I have a function that creates a button. I pass the intended parent clip to the function. But inside the function, the parent clip disapears.

      Now.. I know that in the below code, the ACTUAL parent is 'this' (_level0) but before I can assign the button to the intended parent, I need to figure out why the parent disapears.

      Any ideas?

      Code Below: