Trying to convert webpage code to use with Shockwave Flash Player in VB.NET 2010
Is this even possible?
I’m trying to get this code from a webpage to work with a Shockwave Flash Player in VB.NET 2010. There are all kinds of parameters, but no examples on how each works. I’ve tried all kinds of ways with no success. Is this even possible and how is it done?
Code from webpage
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="utv925890" height="230" width="340">
<param name="flashvars" value="autoplay=true&brand=embed&cid=6540154&v3=1">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="movie" value="http://www.ustream.tv/flash/viewer.swf">
<embed flashvars="autoplay=true&brand=embed&cid=6540154&v3=1" allowfullscreen="true" allowscriptaccess="always" id="utv925890" name="utv_n_309111" src="NASA_HDTV.php_files/viewer.swf" type="application/x-shockwave-flash" height="196" width="380">
</object>
How do I get this to work with the Shockwave Flash Player in VB.NET 2010?
Many thanks for any help that you can provide.
yes, it can work in asp.net
hi there,
regardless of your language like vb.net or c#, you put your code in a aspx page or mvc view and from there imagine this:
flashvars string is in a variable called vFlashvars
src or url string is a variable called vUrl
your viewer string, addres, url, etc might be called vViewer
from there you change your code in, for example, your aspx page to
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="utv925890" height="230" width="340">
<param name="flashvars" value="<%=vFlashvars%>">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="movie" value="<%=vViewer%>">
<embed flashvars="autoplay=true&brand=embed&cid=6540154&v3=1" allowfullscreen="true" allowscriptaccess="always" id="utv925890" name="<%=vUrl%>" type="application/x-shockwave-flash" height="196" width="380">
</object>
these variables might come from the code-behind file, in your case a .vb file, and might be loaded in as simple as Page_Load event.
i hope this helps,
tonci korsano