   [web] [Flash] Bizzare problem involving deleting duplicated movie clips
  In the game I am working, on a movie clip is duplicated repeatedly to create new platforms for the player. When the platforms reach the bottom of the screen, they are removed. The game has two variables to point to the first platform on the screen (the one created earliest) and another to supply the name for the next number, one above the previous one just created.When the player resets the game I want to delete all of the MC's. However, when doing this, the last one does not disappear. I went stepped through the code using the debugger and it deletes the platforms one by one. If then gets to the final platform number and just does nothing. I have literally no idea why this can possibly be. I create the platforms like this://at the start:var nextPlatform:Number = [1];var oldestPlatform:Number = [1];//At platform generation:plat_mc.duplicateMovieClip("platform"+nextPlatform,nextPlatform+[[1]]);nextPlatform++;(The oldestPlatform number is updated when the platforms pass of the edge of the screen)When I come to remove them all at the end I do this:for(var i:Number = oldestPlatform; i< nextPlatform; i++){this["platform"+i].removeMovieClip();}I have tried changing the less than sign to a less than or equal to sign although this was just clutching at straws as 'i' reaches the number for the last platform, it just doesn't remove it.I really am stuck here and any help would be much appreciated.[Edited by - thk123 on April 7, 2010 2:47:49 PM]