Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Dynamic JPG


only_loooser
6/26/2004 8:33:55 PM
Hi all here is my problem
i have a dirctory contains some JPG files which represent Sponsors images
that are loaded using action script as an advertiesment for those sponsors
the sponsors number may change and so we may add or remove some pics
how can i make flash detect all the JPG files on this directory
Do i hav eto use c# for example to send flash array of names of files

or flash already has a facility like the DIRECTORY CLASS in C#
plz answer me
only_loooser
6/26/2004 10:07:24 PM
plz answer me
Jack.
6/26/2004 10:23:22 PM
you can save an updated textfile in the folder, containing
the jpg names separated by a delimeter.
get these text variables into flash use the delimeter to split
to an array.
or use a server-side solution to read the folder contents,
this example, using php, uses the array of returned names
to create the list and run a controller,
hth

http://www.jackleaman.co.uk/obj_menu/photoalbum_php_jpg.html
only_loooser
6/27/2004 10:22:29 PM
Hello Jack
Thanks for your answer...But
Does your answer means we cannot accomplish this task using Flash only
we need a third party to pass an array of the new uploaded JPGs to the flash
player
so that it can loop on them.
i mean Flash cannot detect them it self
there is no facility like Directory CLASS in C#
can u answer me please
Sicnerely
Jack.
6/27/2004 10:28:46 PM
[quoted text, click to view]

Flash, on its own, cannot detect the contents of a folder.
only_loooser
6/27/2004 10:34:38 PM
Thx for your Fast answer
now i can think in another solution like
PHP - as u advised me- or C# since my T.V program is completely in C#
thx again for your caring
Sicnerely
George
AddThis Social Bookmark Button