troubleshooting Question

How can I dynamically change FlashVars item "streamName" at runtime using ASP.NET?

Avatar of incrediblejohn
incrediblejohn asked on
JavaScriptWeb DevelopmentASP.NET
11 Comments1 Solution2783 ViewsLast Modified:
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-AE6D-11cf-96B8-444553540000" 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_Progressive.swf" />
    <param name="salign" value="lt" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=zydeco-example&autoPlay=false&autoRewind=true" />
    <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=zydeco-example&autoPlay=false&autoRewind=true" quality="high" scale="noscale" width="400" height="300" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />  
</object>
ASKER CERTIFIED SOLUTION
Bane83

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros