attachMovie("idName", "newName", depth);
idName = this is the name of the MovieClip in your library (right click, linkage, export for actionscript, identifier) don't forget to put the " "
newName = this is an instance name you give to each MCs ex: MyClip1
depth = you can only have one MC on each depth value, this.getNextHighestDepth() will give you the next empty depth
for (i=1; i<=5; i++){
_root.attachMovie("idName", "myclip"+i, this.getNextHighestDepth());
}
this will create 5 MCs with 5 different instances (myclip1, myclip2, myclip3, myclip4, myclip5)
for the limit of 5 enemies... try to create a variable that count the number of enemies on stage
EnemyCount = 0;
if (EnemyCount<5){
//create an enemy and add +1 to your count
}
if the count gets to five, it will stop spawning, don't forget to minus 1 each time you destroy one.
hope this helps