Skip to main content
Known Participant
July 18, 2011
Question

For loop and dynamic movieclip assignment

  • July 18, 2011
  • 1 reply
  • 231 views

Why cant i do this in actionscript 3

for (n;n<stopAtNumber;n++){

  detailsMovieClip_mc.tour.hdr_txt.text = myXML..item_name;

  

   }  

Is there another way to achieve the same results?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
July 18, 2011

You should be able to do that if the objects are stored in an array, though your particular approach may not be correct for whatever your scenario is.

One thing you need to do though is declare the "n" variable if you haven't done so outside of the loop.