9 Replies Latest reply on Jul 15, 2008 9:10 AM by cjaimet

    Looping Through Objects

    cjaimet
      How can I loop through a collection of objects all made from the same class to find the one whose properties match my search criteria? Sorry if this is a newbie question, but I'm stuck.

      I'm trying to reproduce an HTML image map, so when someone clicks on a region of an image the script finds the object that corresponds to that region based on x/y coordinates. After that I can display that object's details in another part of the screen.

      The image map is a shot of a car showroom and the objects are cars. These are drawn from a database so the system has to be dynamic.