Flash embed with vars


<?php
if (file_exists("pet".$_GET['bg'].".txt")){
print('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="108" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" width="780" height="108">');
print('<param name="movie" value="test.swf?"'.$_GET['bg'].' />');
print('<param name="quality" value="high" />');
print('<param name="bgcolor" value="#397FC6" />');
print('<param src="test.swf" quality="high" width="780" height="108" name="My Flash Movie" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />');
print('<embed src="test.swf" width="780" height="108" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
print('</embed>');
print('</object>'); 
}else{
echo "sorries, the pet doesn't exist! :( "
}
    ?>



i want it to embed a flash file with a flashvar

like “pathtofile/test?bg=1”

the embedded flash file will show “1” in a dynamic text field

but it shows a blank page :confused:

not sure whats happening