How to dynamically load images into a swf?
Posted on 2008-11-01
I'm currently taking a very long line of photos, grouping them as a symbol and crawling them across a header, which is working out rather well. Now I'm having the need to load images dynamically from a directory so that as more are added, etc. the Flash animation pulls those into the animation (in this case an AS2 coded tween).
I'm supposing that some sort of an `ls` or `dir` command may be available (if the swf is on the same server) in order to get the list of filenames necessary, but I'd like to see the code delineated fully in order to know how to properly execute this. Also as this the swf is not run server side, perhaps some other tricks have to be brought into action in order to get this to function properly... For example, will PHP have to be brought to bare for this? Please advise.