i would like to know what is the more practical way to embed many images using actionscript. Firstly, i don’t want to download an image every time from the server, and then, i would like to change the number of images and/or their names. What do you propose for these requirements?
ps: I have been alerted for the Embed tag but it seems a little inconvenient in its use as you have to declare a new class for each asset and instantiate the class separately.
Met the problem above, the solution I use is a little straightforward, but simple. You write a batch file (.cmd) that goes through a directory, generating as3 code, then it runs the compiler to create .swf.
it looks something like this:
it generates something like: