How use PHP to read image files from a folder and display them in Flex 3 tilelist.
Hello. I need help on displaying images from a folder dynamically using PHP and display it on FLEX 3 TileList. Im currently able to read the image files from the folder but i don't know how to display them in the TileList. This is my current code
//Open images directory
$imglist = '';
$dir = dir("C:\Documents and Settings\april09mpsip\My Documents\Flex Builder 3\PHPTEST\src\Assets\images");
//List files in images directory
while (($file = $dir->read()) !== false)
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
echo "filename: " . $file . "\n";
I'm not sure this is the right site for your question, we're PHP guys here not Flex heroes. There'll probably be some overlap but you'd get a quicker/better/more-useful answer on a Flex forum. That said, I may take a look at this post later when things aren't so hectic.
Offtopic: Orc, we made him a super mod because of his amazing good looks, obviously!