The first method didn't work, but the second worked perfectly.
Quote Originally Posted by angelhdz View Post
Make an empty movieclip on a lower layer, put it an instance name of "holder" and change this line of your code:

var mc = holder.attachMovie("superball_mc", "mc"+i, holder.getNextHighestDepth());
Thanks angelhdz