duplicateMovieClip

newbie question:

I’m trying to create an xml menu and I’m duplicating the buttons like this

for (var i = 0; i<noofsongs; i++) {
    duplicateMovieClip("btn", "btn"+i,10);
    btn0._x=500;
}

My question is how do i get at my button instances? I can refer to this first button as btn0 but when i use for example

“btn”+i._x=500 it doesn’t like it… help anyone?

i now (almost) understand about arrays and properties of objects, it has been a struggle but I am enjoying it, when I check over and read the posts i made I have learnt a lot - thx again :wink: