I have to display multiple Collada objects in a scene whos’ individual information is listed in an XML document as nodes. Heres what needs to happen:
-
Store item ‘titles’ and ‘ids’ inside an array from an XML document. (I think I have this part working and ready)
-
The data from the XML is then used to generate paths to Collada files. Path example: new Collada = “items/” + itmeName + itemID “.dae”;
-
A function is called upon to construct each unique Collada instance for every item in the XML using path data from the array.
The bit that has me stumped is how to fit all these together? I need help with a function that takes the data in the array, acts as a path finder and constructer for each item in the library. I suppose this is kind of like when an AS3 XML driven menu is built. You take the data and then have a function that adds event listeners and text bodys for each instance. If I’ve explained this badly, or you wish to see some code, please just let me know!
Thanks