Skip navigation
JBonavita
Currently Being Moderated

Coping MovieClip from one fla to another isn't working right

Feb 28, 2013 8:02 AM

I copied a movieclip from one fla to another one. The copy itself seems to have worked but when I call mysprite.addChild(mymovieclip) I get Parameter child must be non-null.

 

Is there more that has to be done to get the movie clip created?

 
Replies
  • Currently Being Moderated
    Feb 28, 2013 8:20 AM   in reply to JBonavita

    How does the code you show relate to the movieclip you copied over?  Where is the movieclip you copied over?

     
    |
    Mark as:
  • kglad
    72,207 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 28, 2013 8:21 AM   in reply to JBonavita

    where is mymovieclip defined?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 28, 2013 8:32 AM   in reply to JBonavita

    In the code you gave mymovieclip is a variable name, not a type. If mymovieclip is the linkage name try this instead:

     

    var mc:mymovieclip = new mymovieclip();

     

    Alternatively if you are trying to make a class for your symbol your class just needs to extend MovieClip and then you set that as the base class in the advanced properties window.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points