Just a quick question -
html .="<param name=FlashVars value='imageFilename=$row[pic]'> "
As I don’t think the $row[pic] should appear within the ’ ’ think it should be somthing like this:
html .="<param name=FlashVars value='imageFilename='.$row[pic].'> "
but am not sure of the correct syntax.