# Convert quicktime mp3 player to flash?

**URL:** <https://forum.kirupa.com/t/convert-quicktime-mp3-player-to-flash/320276>\
**Category:** flash\
**Created:** [March 18, 2011, 8:48pm UTC](https://forum.kirupa.com/t/convert-quicktime-mp3-player-to-flash/320276 "2011-03-18T20:48:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uktab](https://avatars.discourse-cdn.com/v4/letter/u/5f9b8f/32.png) [@uktab](https://forum.kirupa.com/u/uktab)\
**Post date:** [March 18, 2011, 8:48pm UTC](https://forum.kirupa.com/t/convert-quicktime-mp3-player-to-flash/320276/1 "2011-03-18T20:48:04Z")

</div>

My first post!

I want to convert my site’s embedded quicktime mp3 player into a flash player, and it should be really easy.  
The problem is that the site uses a variable $imgname12 which refers to the currently-chosen mp3, and I can’t make the flash player ‘see’ the mp3 using a variable. It only seems to want an actual filename - e.g. song123.mp3

The quicktime code is here :  
if ($imgname12!="") {

// $imgname12 is the track the user selects to preview

echo("\<p\>\<img src=images/speaker.gif border=0 align=absmiddle\> Now playing 30 sec. mono demo…");

echo("\<embed src=‘images/" . $imgname12 . "’ autostart=true loop=false width=200 height=100\>\</embed\>");

If anyone knows how this can be done, I’d be grateful!

Thank you
