Skip to main content
Inspiring
January 24, 2008
Answered

attachMovie depth

  • January 24, 2008
  • 3 replies
  • 321 views
I'm sure I have done this before without any issues, but maybe something has changed?

I have a movieclip add at a depth of 100 using attachMovie(). I have removed this clip using unloadMovie() and attached a new movieclip at the depth of 100. The new movieclip instance is being created, but not displayed unless I attach to a different layer.

I know that when I had done this previously, adding a new instance to a depth where another instance already existed would replace the original instance.

So a few questions...

The first movieclip instance properties can still be accessed, even though the clip has been removed using unloadMovie(). Is there a way I need to completely unload it?

What do I need to do in order to use a reuse a depth?
This topic has been closed for replies.
Correct answer kglad
use removeMovieClip() to remove a movieclip instance and all its properties and methods. unloadMovie() removes the instance but not its properties and methods (including its depth).

3 replies

kglad
Community Expert
Community Expert
January 24, 2008
you're welcome.
brad9376Author
Inspiring
January 24, 2008
Thanks, that made the difference.
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 24, 2008
use removeMovieClip() to remove a movieclip instance and all its properties and methods. unloadMovie() removes the instance but not its properties and methods (including its depth).