Skip to main content
Known Participant
November 6, 2017
Question

load all images from a url

  • November 6, 2017
  • 2 replies
  • 330 views

is it possible for flash using action script to see all the images that were held in a folder in a url and know their filenames etc?

so for example I have 200+ images here:


https://onelittledaisyportraits.files.wordpress.com/2017/11/

https://onelittledaisyportraits.files.wordpress.com/2017/11/insta-1.jpg

https://onelittledaisyportraits.files.wordpress.com/2017/11/insta-2.jpg

etc

is it possible instead of preloading the specific url that flash could just go to https://onelittledaisyportraits.files.wordpress.com/2017/11/ and see the images in there and create an array with the image names?

This topic has been closed for replies.

2 replies

Known Participant
November 7, 2017

ok thanks i'll look into that

IGZN
Inspiring
November 7, 2017

no, AS can't browse your http server (especially when the status of the response is 404, even your browser can't read the contents), but you can read and process the server's response.

you should just create a simple script (assuming your wp runs on php) that lists the contents of the directory, and load that script from AS. something line 2017/11/gallery.php which lists all the supported image formats (jpg, png etc)