Dynamic object


im trying to dynamically create objects, getting their name from an array and depth from a for loop… i realize i probably need to use a function, but i just dont see how i can do it…
thats what i have so far…

ffunction create(name, depth) {

            return (createEmptyMovieClip (name, depth));
        this.create (uname, num);

now, uname is a name of an object (if i trace it, it gives me the right name) , and num = i+2(also traces fine).

can someone please help me with this?