<embed
src='player-viral.swf'
width='263'
height='220'
bgcolor='undefined'
allowscriptaccess='always'
allowfullscreen='true'
flashvars='file=dsc.flv'
/>
Guys this is the code. I want to have a variable inside the flashvar. the dsc.flv is a fix video. i want to loop video so i want a variable inside it. sorry for my grammar. thanks
FlashVar function how to insert variables
Moderator: General Moderators
Re: FlashVar function how to insert variables
I assume you know php, so just make this php echo
or do it in-line
Code: Select all
echo "<embed src='player-viral.swf' width='263' height='220' bgcolor='undefined' allowscriptaccess='always' allowfullscreen='true' flashvars='file=".$your_variable."'/>";Code: Select all
<embed
src='player-viral.swf'
width='263'
height='220'
bgcolor='undefined'
allowscriptaccess='always'
allowfullscreen='true'
flashvars='file=<?php echo $your_variable ?>'
/>