snipt

Ctrl+h for KB shortcuts

JavaScript+PHP

onclick event listener on flash (swf)

1
2
3
4
// onclick event listener on flash (swf) in chrome
$('#layer1').mousedown(function() {
  alert('mouse down');
});
https://snippets.siftie.com/embed/0a17a726dce2cd34f9294304ed4195e8/
/raw/0a17a726dce2cd34f9294304ed4195e8/
0a17a726dce2cd34f9294304ed4195e8
js+php
JavaScript+PHP
4
2019-02-24T14:54:53
True
False
False
/api/public/snipt/31551/
onclick-event-listener-on-flash-swf
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">// onclick event listener on flash (swf) in chrome</span> </span><span id="L-2"><a name="L-2"></a><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;#layer1&#39;</span><span class="p">).</span><span class="nx">mousedown</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="nx">alert</span><span class="p">(</span><span class="s1">&#39;mouse down&#39;</span><span class="p">);</span> </span><span id="L-4"><a name="L-4"></a><span class="p">});</span> </span></pre></div> </td></tr></table>
chrome, click, flash, jquery, onclick, swf

HTML

Add a flash movie to html

1
2
3
4
5
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1600" height="551">
<param name="movie" value="<$mt:StaticWebPath$>flash/banner.swf" />
<param name="quality" value="high" />
<embed src="<$mt:StaticWebPath$>flash/banner.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1600" height="551"></embed>
</object>
https://snippets.siftie.com/embed/7a78311ef325836589df22da3b5f185f/
/raw/7a78311ef325836589df22da3b5f185f/
7a78311ef325836589df22da3b5f185f
html
HTML
5
2019-03-05T08:15:53
True
False
False
/api/public/snipt/5516/
add-a-flash-movie-to-html
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">object</span> <span class="na">classid</span><span class="o">=</span><span class="s">&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;</span> <span class="na">codebase</span><span class="o">=</span><span class="s">&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;1600&quot;</span> <span class="na">height</span><span class="o">=</span><span class="s">&quot;551&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="p">&lt;</span><span class="nt">param</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;movie&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;&lt;$mt:StaticWebPath$&gt;flash/banner.swf&quot;</span> <span class="p">/&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">param</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;quality&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;high&quot;</span> <span class="p">/&gt;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">&lt;</span><span class="nt">embed</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;&lt;$mt:StaticWebPath$&gt;flash/banner.swf&quot;</span> <span class="na">quality</span><span class="o">=</span><span class="s">&quot;high&quot;</span> <span class="na">pluginspage</span><span class="o">=</span><span class="s">&quot;http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&quot;</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;application/x-shockwave-flash&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;1600&quot;</span> <span class="na">height</span><span class="o">=</span><span class="s">&quot;551&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">embed</span><span class="p">&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">&lt;/</span><span class="nt">object</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
flash, html, swf

Text only

640 generic swf

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="Yourfilename.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <EMBED src="Yourfilename.swf" quality=high bgcolor=#333399 WIDTH="640" HEIGHT="480" NAME="Yourfilename" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> 
https://snippets.siftie.com/embed/369c9517d1dc1726ca30ce78c5920ca9/
/raw/369c9517d1dc1726ca30ce78c5920ca9/
369c9517d1dc1726ca30ce78c5920ca9
text
Text only
2
2019-02-17T05:37:06
True
False
False
/api/public/snipt/1461/
640-generic-swf
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>&lt;OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot; WIDTH=&quot;320&quot; HEIGHT=&quot;240&quot; id=&quot;Yourfilename&quot; ALIGN=&quot;&quot;&gt; </span><span id="L-2"><a name="L-2"></a>&lt;PARAM NAME=movie VALUE=&quot;Yourfilename.swf&quot;&gt; &lt;PARAM NAME=quality VALUE=high&gt; &lt;PARAM NAME=bgcolor VALUE=#333399&gt; &lt;EMBED src=&quot;Yourfilename.swf&quot; quality=high bgcolor=#333399 WIDTH=&quot;640&quot; HEIGHT=&quot;480&quot; NAME=&quot;Yourfilename&quot; ALIGN=&quot;&quot; TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;http://www.macromedia.com/go/getflashplayer&quot;&gt;&lt;/EMBED&gt; &lt;/OBJECT&gt; </span></pre></div> </td></tr></table>
embed, swf

HTML

generic .swf code

<center><br><ul><li style="display: none;" class="embedded_object">[div style=" width: 500px; margin-left: auto; margin-right: auto; margin-top: 5px;"][object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="300" width="300"][param name="movie" value="INSERT .SWF FILE HERE"][param name="quality" value="best"][param name="loop" value="true"][param name="wmode" value="opaque"][EMBED SRC="INSERT .SWF FILE HERE" LOOP="true" QUALITY="best" HEIGHT="500" WIDTH="500" wmode="transparent"][/object][/div]</li></ul>
https://snippets.siftie.com/embed/ab5bb5f40bf9ae02f2fc0789966b82de/
/raw/ab5bb5f40bf9ae02f2fc0789966b82de/
ab5bb5f40bf9ae02f2fc0789966b82de
html
HTML
2
2019-03-18T14:27:00
True
False
False
/api/public/snipt/1331/
generic-swf-code
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">center</span><span class="p">&gt;&lt;</span><span class="nt">br</span><span class="p">&gt;&lt;</span><span class="nt">ul</span><span class="p">&gt;&lt;</span><span class="nt">li</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;display: none;&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;embedded_object&quot;</span><span class="p">&gt;</span>[div style=&quot; width: 500px; margin-left: auto; margin-right: auto; margin-top: 5px;&quot;][object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&quot; height=&quot;300&quot; width=&quot;300&quot;][param name=&quot;movie&quot; value=&quot;INSERT .SWF FILE HERE&quot;][param name=&quot;quality&quot; value=&quot;best&quot;][param name=&quot;loop&quot; value=&quot;true&quot;][param name=&quot;wmode&quot; value=&quot;opaque&quot;][EMBED SRC=&quot;INSERT .SWF FILE HERE&quot; LOOP=&quot;true&quot; QUALITY=&quot;best&quot; HEIGHT=&quot;500&quot; WIDTH=&quot;500&quot; wmode=&quot;transparent&quot;][/object][/div]<span class="p">&lt;/</span><span class="nt">li</span><span class="p">&gt;&lt;/</span><span class="nt">ul</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
code, swf