I am still struggling loading in random data from an XML file using Actionscript 3.0 with no repeat of the previous venue.
Basically when I click a button on stage I want a random venue from my xml to display in dynamic text boxes on stage. My XML is located here http://pastebin.com/0qMMkfCs
It would be better to access the data directly without creating an array!
Surely someone knows how to do this correctly. Thankyou 🙂
OK, this edit will show how to ensure they all come up once randomly:
Now calling getAnotherRandomVenue will return you a single Venue XML object. You can now either a) call this method repeatedly until it returns null (all items have been randomly returned) or b) look at venues.length() before you call it.
EDIT: merged the code to clearly when things get loaded and called.