I have sound files and pictures stored in a mysql database and want to load these into a Flash movie dynamically (im creating a preview player to allow customers to "try before they buy" and therefore cant put the stuff in a http password protected directory...or can i?) Is this possible? I've tried a bunch of different ways to pass it through using PHP, but nothing seems to work...for instance:
<?php $file = @mysql_result($row_Audio['MP3File'],0,"bin_data");
and then embeding the $file variable into the FlashVars and using a simple sound load in actionscript within flash, but in order for that to work, the Flash variable has to be a url....it works fine when the file is stored in a directory on the server, but i need to pass it straight from the db...i've also tried to combine the above with
copy($file,"user/$file_name");
to pass it through where FlashVars="soundtoplay=user/file_name" with no success....
Any ideas?