Note that there are some explanatory texts on larger screens.

plurals
  1. POC# - Embedding .swf file with parameters into WPF and make it look native?
    text
    copied!<p>I have a shockwave flash file which needs some parameters to be passed to it ( I assume! ) because I'm not actually involved deeply in those stuff.</p> <p>It looks like this when embedded into an HTML page :</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="style.css" type="text/css"/&gt; &lt;script language=JavaScript&gt; var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ return false; } } function clickNS4(e){ if (document.layers||document.getElementById&amp;&amp;!document.all){ if (e.which==2||e.which==3){ return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&amp;&amp;!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("return false") &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="main"&gt; &lt;object id="RadioPlayer" width="406" height="150" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" name="RadioPlayer" align="middle" bgcolor="#FFFFFF"&gt;&lt;param name="_cx" value="5080" /&gt;&lt;param name="_cy" value="5080" /&gt;&lt;param name="FlashVars" value="serverHost=www.krykey.com&amp;amp;radio=24295&amp;amp;listUrl=" /&gt;&lt;param name="Movie" value="http://www.krykey.com/swf/player/RadioPlayer.swf" /&gt;&lt;param name="Src" value="http://www.krykey.com/swf/player/RadioPlayer.swf" /&gt;&lt;param name="WMode" value="Transparent" /&gt;&lt;param name="Play" value="0" /&gt;&lt;param name="Loop" value="-1" /&gt;&lt;param name="Quality" value="High" /&gt;&lt;param name="SAlign" value="LT" /&gt;&lt;param name="Menu" value="-1" /&gt;&lt;param name="Base" value="" /&gt;&lt;param name="AllowScriptAccess" value="sameDomain" /&gt;&lt;param name="Scale" value="NoScale" /&gt;&lt;param name="DeviceFont" value="0" /&gt;&lt;param name="EmbedMovie" value="0" /&gt;&lt;param name="BGColor" value="FFFFFF" /&gt;&lt;param name="SWRemote" value="" /&gt;&lt;param name="MovieData" value="" /&gt;&lt;param name="SeamlessTabbing" value="1" /&gt;&lt;param name="Profile" value="0" /&gt;&lt;param name="ProfileAddress" value="" /&gt;&lt;param name="ProfilePort" value="0" /&gt;&lt;param name="AllowNetworking" value="all" /&gt;&lt;param name="AllowFullScreen" value="false" /&gt;&lt;param name="src" value="http://www.krykey.com/swf/player/RadioPlayer.swf" /&gt;&lt;param name="flashvars" value="serverHost=www.krykey.com&amp;amp;radio=24295&amp;amp;listUrl=http://www.krykey.com" /&gt;&lt;param name="wmode" value="transparent" /&gt;&lt;param name="pluginspage" value="http://www.adobe.com/go/getflashplayer" /&gt;&lt;param name="allowscriptaccess" value="sameDomain" /&gt;&lt;param name="quality" value="high" /&gt;&lt;param name="play" value="0" /&gt;&lt;param name="loop" value="loop" /&gt;&lt;param name="salign" value="LT" /&gt;&lt;param name="menu" value="-1" /&gt;&lt;param name="base" value="" /&gt;&lt;param name="scale" value="NoScale" /&gt;&lt;param name="devicefont" value="0" /&gt;&lt;param name="embedmovie" value="0" /&gt;&lt;param name="swremote" value="" /&gt;&lt;param name="moviedata" value="" /&gt;&lt;param name="seamlesstabbing" value="1" /&gt;&lt;param name="profile" value="0" /&gt;&lt;param name="profileaddress" value="" /&gt;&lt;param name="profileport" value="0" /&gt;&lt;param name="allownetworking" value="all" /&gt;&lt;param name="allowfullscreen" value="false" /&gt;&lt;embed id="RadioPlayer" width="406" height="150" type="application/x-shockwave-flash" src="http://www.krykey.com/swf/player/RadioPlayer.swf" _cx="5080" _cy="5080" FlashVars="serverHost=www.krykey.com&amp;amp;radio=24295&amp;amp;listUrl=" Movie="http://www.krykey.com/swf/player/RadioPlayer.swf" Src="http://www.krykey.com/swf/player/RadioPlayer.swf" WMode="Transparent" Play="0" Loop="-1" Quality="High" SAlign="LT" Menu="-1" Base="" AllowScriptAccess="sameDomain" Scale="NoScale" DeviceFont="0" EmbedMovie="0" BGColor="FFFFFF" SWRemote="" MovieData="" SeamlessTabbing="1" Profile="0" ProfileAddress="" ProfilePort="0" AllowNetworking="all" AllowFullScreen="false" flashvars="serverHost=www.krykey.com&amp;amp;radio=24295&amp;amp;listUrl=http://www.krykey.com" wmode="transparent" pluginspage="http://www.adobe.com/go/getflashplayer" allowscriptaccess="sameDomain" quality="high" play="0" loop="loop" salign="LT" menu="-1" base="" scale="NoScale" devicefont="0" embedmovie="0" swremote="" moviedata="" seamlesstabbing="1" profile="0" profileaddress="" profileport="0" allownetworking="all" allowfullscreen="false" name="RadioPlayer" align="middle" bgcolor="#FFFFFF" /&gt;&lt;/object&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>and here's the "style.css" file :</p> <pre><code>#main { position: fixed; top: -20px; left: 0px; width: 416px; height: 150px; } </code></pre> <hr> <p>How can I embed that (swf page "or" html page) into my WPF application and make it look like if it was an original part of the WPF application itself ?</p> <p>I don't want it to look like an external HTML page has been embedded only, it has to be as I mentioned above, so .. any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload