Skip navigation
AnimatedCircle
Currently Being Moderated

Error please help

Apr 13, 2012 7:46 AM

TypeError: Error #1009: Cannot access a property or method of a null object reference.

          at AttackMC/frame25()

 

what do ii do?

What does this mean?

 
Replies
  • Currently Being Moderated
    Apr 13, 2012 8:35 AM   in reply to AnimatedCircle

    it means you have an object that is null

     

    turn on debugging run the game again to reproduce the error

     

    include the new error here which will include line numbers

     

    paste to code from frame 25 of AttackMC here indicating the line number that is reported in the error

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 13, 2012 8:46 AM   in reply to AnimatedCircle

    ok it looks like either parent is null or parent isn't a MovieClip

     

    use this code instead and let me know what gets traced out

     

    stop();

    trace("parent: " + parent);

    trace("mc parent: " + MovieClip(parent));

    MovieClip(parent).gotoAndPlay(MovieClip(parent).currentFrame+1);

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 13, 2012 9:03 AM   in reply to AnimatedCircle

    that means that an instance of AttackMC doesn't have a parent

     

    i wonder are you using flash player 11.2?

     

    i wonder if it's related to http://forums.adobe.com/thread/989387?tstart=0

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 1:03 AM   in reply to AnimatedCircle

    no the MC name and linage you are using are find you give a MovieClip a parent by calling atChild()

     
    |
    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