Yeah, I wasn't thinking about it that way.
For a number of reasons it would be better to make it work with Javascript rather than Flash. At least for now.
The missing link is this. Maybe you know how to make this connection.
In the PHP part it has already established connection to the database and created the array with:
$MyImages = explode("|", $a1[image]);
Is there any way to pass this array to my javascript function where:
var myPix = new Array()
If I could get the array to javascipt I know what to do with it from there.