Search code examples
phpflash-builderparametersflashvars

PHP and FlashVars communication


Here is a simple problem I need to maintain. I need to pass PHP variable into FlashVars.

<param name=FlashVars value='sourceUrl=<?php echo $fileName;?>'>

If I use <param name=FlashVars value='sourceUrl=videoSource'> where videoSource = $fileName and $fileName is something like(Video/video.flv) it won't work. Any help is greatly appreciated


Solution

  • document.writeln("<param name=FlashVars value='sourceUrl= \""+videoSource+"\"'>");
    

    videoSource takes value of $fileName this way var videoSource="<?php echo $fileName;?>"; Problem solved.