I’d like to populate a sidescrolling menu with thumbnail images. I’m loading the images externally using an xml file with the paths in it. I am learning actionscript now, so i’m pretty new to this stuff, but i am having an issue with this loop. It should be simple, but it’s not working correct.
function makeButton() {
for(id = 1; id<=total;id++){
duplicateMovieClip(m_button,"m_button"+id,9987)
this["m_button"+id]._x = m_button._x + 70*id
}
}
what I want this code to do is make a number (id = 12) of “m_buttons” next to eachother, but instead, it is making one button 70*12 pixels away, and not the ones in between.