<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;i&gt;So that would enable/disable all flash movies? What if you want to watch flash movies and block other flash ads on a site?&lt;/i&gt;

with the current code, as it iterates through the list of flash movies on a site, it keeps overwriting the &lt;tt&gt;placeholder&lt;/tt&gt; and &lt;tt&gt;flash&lt;/tt&gt; variables. so if you have more than one flash movie on a page, clicking the &lt;b&gt;[Play Flash]&lt;/b&gt; button only activates/deactivates the last flash movie on the page.

with my fix, it doesn't use this variable from the click listener anymore, but rather finds these elements relative to the element calling the handler, so you can activate and deactivate individual movies on a page individually.

ahh, i use flashblock now anyway ;)

pix.</body>
  <body-html>&lt;p&gt;&lt;i&gt;So that would enable/disable all flash movies? What if you want to watch flash movies and block other flash ads on a site?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;with the current code, as it iterates through the list of flash movies on a site, it keeps overwriting the &lt;tt&gt;placeholder&lt;/tt&gt; and &lt;tt&gt;flash&lt;/tt&gt; variables. so if you have more than one flash movie on a page, clicking the &lt;b&gt;[Play Flash]&lt;/b&gt; button only activates/deactivates the last flash movie on the page.&lt;/p&gt;

&lt;p&gt;with my fix, it doesn't use this variable from the click listener anymore, but rather finds these elements relative to the element calling the handler, so you can activate and deactivate individual movies on a page individually.&lt;/p&gt;

&lt;p&gt;ahh, i use flashblock now anyway ;)&lt;/p&gt;

&lt;p&gt;pix.&lt;/p&gt;</body-html>
  <created-at type="datetime">2007-05-22T07:00:57Z</created-at>
  <forumable-id type="integer">6532</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">76397</id>
  <topic-id type="integer">17423</topic-id>
  <updated-at type="datetime">2008-11-17T00:22:30Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">22883</user-id>
</post>
