A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: removeMovieClip(this) in AS3 ?

  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    77

    Unhappy removeMovieClip(this) in AS3 ?

    I am new at AS3. I use removeChild() to remove something in the stage. But i got a problem.

    There is a movieclip named mc in the main stage.

    removeChild(this)

    is at the 10. frame of mc. But it doesn't work.

  2. #2
    Multitouch Aficionado
    Join Date
    Mar 2006
    Posts
    275
    this.parent.removeChild(this)?

  3. #3
    Member
    Join Date
    Aug 2006
    Posts
    77
    TypeError: Error #1009: Cannot access a property or method of a null object reference.

  4. #4
    Member
    Join Date
    Sep 2007
    Location
    Richmond, VA
    Posts
    45
    you may find an answer in my thread: here

    I'm about to try it out...

  5. #5
    Member
    Join Date
    Apr 2006
    Posts
    32
    Just type removeChild(mc), it worked by me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center