<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - FlashExportToJepg sample script not working</title>
    <link>https://forums.adobe.com/community/bridge/bridge_scripting?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 17 Oct 2014 12:06:07 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-10-17T12:06:07Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>FlashExportToJepg sample script not working</title>
      <link>https://forums.adobe.com/message/6839558?tstart=0#6839558</link>
      <description>&lt;!-- [DocumentBodyStart:037ab507-4f81-4b9a-9c22-6bcc364873d4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I need to produce screenshots of swf files. I'm having no luck getting the FlashExportToJepg scrip&lt;span style="font-family: arial, helvetica, sans-serif;"&gt;t, included in&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: arial, helvetica, sans-serif;"&gt; th&lt;/span&gt;e &lt;/span&gt;&lt;span style="color: #333333;"&gt;&lt;span style="font-size: 14px; line-height: 1.5em;"&gt;Adobe Bridge CS6 SDK, working. It &lt;/span&gt;&lt;span style="font-size: 14px; line-height: 21px;"&gt;doesn't&lt;/span&gt;&lt;span style="font-size: 14px; line-height: 1.5em;"&gt; error, it just &lt;/span&gt;&lt;span style="font-size: 14px; line-height: 21px;"&gt;doesn't&lt;/span&gt;&lt;span style="font-size: 14px; line-height: 1.5em;"&gt; produce the &lt;/span&gt;&lt;/span&gt;&lt;span style="line-height: 21px; color: #333333; font-size: 14px;"&gt;jpeg. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="line-height: 21px; color: #333333; font-size: 14px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="line-height: 21px; color: #333333; font-size: 14px;"&gt;&lt;span style="color: #333333; font-size: 14px;"&gt;I wrote &lt;/span&gt;this short script to try to identify the problem. It produces a jpeg from the preview when an image is selected &amp;#8211; but not for a swf.&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;var bitmap=app.document.selections[0].core.preview.preview;&lt;/p&gt;&lt;p&gt;var path=returnPath(app.document.selections[0].path,1)+"/test.jpg"; &lt;/p&gt;&lt;p&gt;bitmap.exportTo(path);&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;function returnPath(dFn,nu){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pA= dFn.split("/");&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (n=0;n&amp;lt;nu;n++){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pA.pop();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rP=pA.join();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rP=rP.replace(/,/g,'/');&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return rP;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am running Bridge CC on a Mac osX 10.9&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:037ab507-4f81-4b9a-9c22-6bcc364873d4] --&gt;&lt;img src='/beacon?t=1415930039203' /&gt;</description>
      <pubDate>Fri, 17 Oct 2014 12:06:07 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6839558?tstart=0#6839558</guid>
      <dc:date>2014-10-17T12:06:07Z</dc:date>
      <clearspace:dateToText>3 weeks 7 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

