-
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
-
Thanks for your reply. It seems to me this would be pretty much the same as making a html page out of the code and then running within a WebBrowser control, which I have done. I was shooting for the Shockwave control and using its properties without having to create anything else. Am I not correct in my assumption or am I missing something here?
-
hi there,
now, i know what you meant.
you want to run this flash file from a dotnet windows form.
i thought you meant a aspx file or mvc view.
well, using a webbrowser control is a good idea.
i have never used or read about using a shockwave control.
if your shockwave control is dotnet instead of, for example, activex then you should be able to use this control to run this flash file without problems.
however, i have no idea how to use a shockwave control.
it's great to know this is working out for you just fine.
best regards,
tonci korsano
Similar Threads
-
By sureshsundar007 in forum VB Classic
Replies: 1
Last Post: 06-04-2004, 04:33 AM
-
By Jafang in forum VB Classic
Replies: 1
Last Post: 04-15-2001, 05:04 PM
-
By Ricardo H. in forum VB Classic
Replies: 1
Last Post: 06-02-2000, 07:44 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks