Hide Embed Code/flashvars Vals 25.10.08
I have a player that is currently set up to get the flash variables directly from the flashvars, and the swf file directly from the embed code. I would like to change it so that these values will be hidden, and also the values for the related videos/etc. can be computed on the fly, in a php file, and then send the full variables list to the flash, similar to the youtube embed code, so something like this:
<object width=”425″ height=”349″>
<param name=”movie”
value=”http://www.myweb.com/v/vidid&hl=en&fs=1&color1=0xcc2550&color2=0xe87a9f&border=1″>
</param><param name=”allowFullScreen” value=”true”></param>
<embed src=”http://www.myweb.com/v/vidid&hl=en&fs=1&color1=0xcc2550&color2=0xe87a9f&border=1″
type=”application/x-shockwave-flash” allowfullscreen=”true” width=”425″ height=”349″></embed></object>
This embed code would get the correct flash swf file to use, and get all the variables to pass to the flash based on the variables already given in the embed code. I have the php file ready to get all the variables based on the variables that get passed to it…how to make the embed and flash work in this hidden way, and the flash to read all the variables from the php page (as this is for users embedding the player, the php page computing all the variables and the flash swf file will be on one server, and the embed code displays on other people’s websites)?



