0
votes

Can someone suggest a workaround to the following problem: I want to make an application that will create an area on stage that will be filled with images. Firstly, the images have to be 'saved' on an array. The problem for me is that I want this to be quite generic. I mean, according to a configuration file(?) or some constants(?), one build of the application may result to an SWF that will create a Rectangle area on stage filled with some graphics from virtual folder 1, while another build of the same application may result to one rectangle area and one triangle area each one filled with graphics from virtual folder 1, and folder 2 respectively. I have stuck here sometime now. Can you suggest a workaround to this?

1
How are you currently getting the list of items (images) to load? - sberry
Currently, i have a virtual folder in library with some images that are given a class name like Image1, Image2, ... and then i manually make the array. I wonder if i can generilize/automate this. - Ponty

1 Answers

1
votes

I'm not sure I completely understand your question, but I've been creating a somewhat similar application in AS3 which reads from a text-file using a URLLoader, and then parses that text to figure out which images to display on screen. It's quite easy to do basic parsing using the built in String library methods. Would this technique work for your problem?