For Loop Movie Clips

Hey everyone, I have been looking around for an answer to this question to no avail, so I have come to the one place I know I’m sure to get an answer (or be pointed in the right direction).

I’m trying to convert this AS2 code, into its AS3 form and am having trouble with understanding how:


for(i=0; i<num; i++){
        var nav_mc = _root.createEmptyMovieClip("nav_link"+i, this.getNextHighestDepth());
       nav_mc.createTextField("link", this.getNextHighestDepth);
};

I only included a small portion of the code, but this is what I’m having most trouble with. Essentially what I’m doing (or wanting to) is creating a navigation that is created dynamically, but I can’t figure out how this is done in AS3. Any help would be much appreciated. Thanks