Serverside generated Sound-Symbols? How to?

Does anybody knows how to create swf !onTheFly! which holds Sound-Symbols and then use that swf as ?sharedLib? or so, so that I can access that sounds from my main-movie with attachSound?

To be more accurate : how to achieve this “Export/import for runtime sharing” when generating SWFs !onTheFly! with some ServerSide Language?

I looked at PHP’s Shockwave Flash Functions :swf_startsymbol and swf_endsymbol but i cant figure out how to “declare” some wav as a symbol?
Is that possible in PHP or JAVA or ASP?

(i want to use “sound”-Files uploaded from the users but i cant use mp3, couse they r impossible to syncronise so i m forced to use waves)