Hello. I need help on coding for reading images from a folder using PHP and linking it to FLEX 3 to display it in a imageTileList. Urgent.
currently my [B]PHP
<?php
$dirname = “./images/mypic”;
$images = scandir($dirname);
foreach($images as $curimg)
{
echo “<IMG src=’./images/mypic/$curimg’/>”;
};
?>
and [B]FLEX 3
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”
<mx:Canvas x=”10″ y=”10″ width=”692″ height=”554″>
<mx:TileList x=”44″ y=”116″ width=”604″ height=”175″>
<mx:Image id=”img” source=”{data.src}”/>
</mx:TileList>
</mx:Canvas>
<mx:String id=”phpPicture”>http://localhost/php/Picture.php</mx:String>
</mx:Application>
This is the codes which is currently not completed and im stuck. I need some help thank you.