Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
ok thanks i'll look into that