Trying to convert webpage code to use with Shockwave Flash Player in VB.NET 2010


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Trying to convert webpage code to use with Shockwave Flash Player in VB.NET 2010

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Posts
    63

    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&amp;brand=embed&amp;cid=6540154&amp;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&amp;brand=embed&amp;cid=6540154&amp;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.

  2. #2
    Join Date
    Oct 2008
    Posts
    142

    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&amp;brand=embed&amp;cid=6540154&amp;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

  3. #3
    Join Date
    Feb 2008
    Posts
    63
    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?

  4. #4
    Join Date
    Oct 2008
    Posts
    142
    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

  1. Transparent Shockwave flash movies
    By sureshsundar007 in forum VB Classic
    Replies: 1
    Last Post: 06-04-2004, 04:33 AM
  2. Shockwave Flash
    By Jafang in forum VB Classic
    Replies: 1
    Last Post: 04-15-2001, 05:04 PM
  3. Shockwave Flash & Visual Basic
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center