Trying to figure out how to reference the 2 streamName name/value pairs in the <object> and <embed tags> of a flash control on an .aspx page. I am trying to use asp.net to get the data from a table (no problem there) and put it in the value part of streamName FlashVar.
I can't seem to reference these tags, or insert script brackets inside of the <object> or <embed> tags.
I've tried <%# strstreamNameVariable %>. I could do it if I could get javascript to see these tags and their parameters.
Here is the flash control that works static ok on my webpage(the streamName is the onlything I need to change):
<object classid="clsid:D27CDB6E-AE
6D-11cf-96
B8-4445535
40000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="300" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressi
ve.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersio
n=1&skinNa
me=Clear_S
kin_3&stre
amName=zyd
eco-exampl
e&autoPlay
=false&aut
oRewind=tr
ue" />
<embed src="FLVPlayer_Progressive
.swf" flashvars="&MM_ComponentVe
rsion=1&sk
inName=Cle
ar_Skin_3&
streamName
=zydeco-ex
ample&auto
Play=false
&autoRewin
d=true" quality="high" scale="noscale" width="400" height="300" name="FLVPlayer" salign="LT" type="application/x-shockw
ave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer" />
</object>
Here is my working code that models your soluton, thank you very much!
Dim sbFlashPlayer As New StringBuilder
'FOR IE BROWSERS
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
'FOR ALL OTHER BROWSERS
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
sbFlashPlayer.Append("")
sbFlashPlayer.Append(Envir
objFlash.Text = sbFlashPlayer.ToString