6 Replies Latest reply on Jan 4, 2008 5:03 PM by kglad

    OOP dynamic naming of objects

    pamppa
      I'm creating an instance in this way:

      var newhouse:House = new House();

      But I need to create fourty of these objects named: "newhouse1","newhouse2",...,"newhouse40"

      How can I name the var dynamicly, since the syntax won't allow brackets