attachmovie..unloadmovie..reattachmovie problem!!

Hi there…

I have a function that attaches a number of instances of a movieclip from the library onto the stage using a for loop

_root.attachMovieClip(“linkagename”,“instance”+i,i)

Then another function clears the screen by calling unloadMovieClip() in a for loop

_root[“instance”+i].unloadMovie();

for all the instances.

If I then call the original function again it no longer works…

Does anyone know if there is an issue about (re)attaching a movie clip once it has been unloaded from the same depth?

any thoughts appreciated… I’m stumped!!