Hi guys,

I am allowing my customer to dynamically preview flash files he uploaded. My page has a modal window which is used for uploading and returns back the id and filename to the calling window. I have put a div at the bottom which has the function:
<script type="text/javascript">
function DisplayFlashFile(FileName)
{
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','width','120','height','600','src','' + FileName + '','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','' + FileName + '');
}
</script>

Now when I capture the return parameters I am calling the function DisplayFlashFile(xxxx) --- without the .swf in the name as expected. Now this actually clears off everything from the form and just displays the flash file!!

I am not sure what's wrong in here, all I want to do is in the display area, display the file as passed to the function.

I would appreciate if someone could help me out, as the client's really pressing.

Thanks!