Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
I have problems to show a SWF FLASH file on my ASP.NET C# WEB project.
Im working on Visual Studio 2010.

I have tried using OBJECTS alone, but nothing happens (code below). Just an empty square.....Even not an error !!!!
Adding the <embed> clause, I have a warning message: "Element embed is not supported" !!!! and nothing happens, again.

------------------
XML
<object type="application/x-shockwave-flash" data="/Imagens/MapaBrasilSelecao-2.swf"
    width="90%" height="150">
    <param name="movie" value="/Imagens/MapaBrasilSelecao-2.swf" />
    <param name="quality" value="high" />
</object>

------------------

I also tried to add <classid> and <codebase> (code below), but nothing worked
well.

------------------
XML
<td align="center">
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="/Imagens/MapaBrasilSelecao-2.swf"
                       codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                       type="application/x-shockwave-flash" width="90%" height="150">
                       <param name="movie" value="/Imagens/MapaBrasilSelecao-2.swf" />
                       <param name="src" value="/Imagens/MapaBrasilSelecao-2.swf" />
                       <param name="quality" value="high" />
                       <embed src="~/Imagens/MapaBrasilSelecao-2.swf" type="application/x-shockwave-flash" width="90%" height="150"></embed>
                   </object>
                  </td>


------------------

Everybody said the same (code above), but it did not work ?
I think there must be some IE Security Configuration I dont know !?!?!?!?!?!

Can anybody help me ?

Thanks.

Guilherme
Posted
Updated 29-May-11 7:19am
v2

Take a look at this Code Project Q/A.use swf in Asp.net please type code or tages that you use it[^]
 
Share this answer
 
Can anybody tell me how to show the swf file if it is present outside of the main project folder in other location (like in different server)?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900