Cyberspace Nova

Flash image gallery example (Actionscript 2) – using PHP to list images from folder

January 8, 2008 · 33 Comments

this is simple gallery example for AS2
gallery is nothing special, ease to use and implement

interesting thing about this example is that you pass a folder, and PHP side gathers image list from a folder and returns it to the Flash in XML form together with images widths and height which makes it more easier to implement this sort of galleries like I’ve made

so from this example you can see :

  • PHP serving XML to Flash
  • PHP getting image size (width and height)
  • Flash loading XML
  • Flash creating elements on stage using library
  • loading external images
  • and more…

this example is for beginner level

example : http://www.hagane.us/as/gallery/
ZIP : http://www.hagane.us/as/gallery/gallery.zip

if you have any questions about PHP or Flash side please post it here

EDIT: sorry for wrong links and config. Everything is corrected now and fully functional
thanks people who noted me about errors!

Categories: Actionscript 2 · Flash · Flash _ · Tutorials · Web developer

33 responses so far ↓

Leave a Comment