How to make a MovieClip remove itself in AS3?

后端 未结 5 1525
不思量自难忘°
不思量自难忘° 2021-01-18 13:41

What is the equivalent to removeMovieClip() in AS3?

Apparently many have the same question:
StackOverflow:

  1. How to completely remove a
5条回答
  •  孤城傲影
    2021-01-18 14:30

    I use, in an extra blank keyframe at the end of the MovieClip which should remove itself:

    stop();
    MovieClip(parent).removeChild(this);
    

    Found it to be the proper and best solution.

提交回复
热议问题