<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Failed Component Preview Command	</title>
	<atom:link href="https://jessewarden.com/2004/04/failed-component-preview-command.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2004/04/failed-component-preview-command.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Wed, 23 Sep 2009 07:39:30 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Anthony Sapien		</title>
		<link>https://jessewarden.com/2004/04/failed-component-preview-command.html/comment-page-1#comment-198932</link>

		<dc:creator><![CDATA[Anthony Sapien]]></dc:creator>
		<pubDate>Wed, 23 Sep 2009 07:39:30 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=493#comment-198932</guid>

					<description><![CDATA[Oh God. Four years later and I&#039;m running into the same problem with CS3. I don&#039;t suppose you ever figured it out? Or maybe had better luck with CS4? 

I stumbled upon a crappy solution - only allowing my command to run with no documents open. When my command runs, it checks for open documents, closes them, and exits. Then I run the command again. It seems that if there is no document open when the JSFL command is launched, it does a better job of recognizing the active document. 

Hopefully you&#039;ve moved on from JSFL, but if not, you may try experimenting with having one script close the open docs and launch another to do the work. Maybe the second script will add the component to the true active document.

Very gross, but maybe helpful to someone out there. You have my sympathies for trying to win this war.]]></description>
			<content:encoded><![CDATA[<p>Oh God. Four years later and I&#8217;m running into the same problem with CS3. I don&#8217;t suppose you ever figured it out? Or maybe had better luck with CS4? </p>
<p>I stumbled upon a crappy solution &#8211; only allowing my command to run with no documents open. When my command runs, it checks for open documents, closes them, and exits. Then I run the command again. It seems that if there is no document open when the JSFL command is launched, it does a better job of recognizing the active document. </p>
<p>Hopefully you&#8217;ve moved on from JSFL, but if not, you may try experimenting with having one script close the open docs and launch another to do the work. Maybe the second script will add the component to the true active document.</p>
<p>Very gross, but maybe helpful to someone out there. You have my sympathies for trying to win this war.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Lawrence		</title>
		<link>https://jessewarden.com/2004/04/failed-component-preview-command.html/comment-page-1#comment-1576</link>

		<dc:creator><![CDATA[Mike Lawrence]]></dc:creator>
		<pubDate>Mon, 13 Jun 2005 03:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=493#comment-1576</guid>

					<description><![CDATA[I don&#039;t know if this will help you, but I was able to move clips between FLAs using JSFL with this approach
0. Open source FLA
1. Select a clip from your library, 
2. place it on a new scene, 
3. copy it to the clipboard
4. Select another FLA
5. Paste the clip to the stage to add it to the library

// Add a temporary scene for placing each compiled component
 var addSceneResult = srcDoc.addNewScene();


 // Select the compiled clip
selectResult = srcLibrary.selectItem(compiledClip);

// Add compiled clip to the new scene
var addResult = srcLibrary.addItemToDocument({x:1, y:1});                                
srcDoc.selectAll(); // Select the compiled clip
srcDoc.clipCut();   // Remove compiled clip from stage and place on clipboard

var deleteResult = srcLibrary.deleteItem(compiledClip); 
// Remove compiled clip from library                
                srcDoc.deleteScene();


//create a new FLA
var dstDoc = fl.createDocument(&#039;timeline&#039;);
var dstLibrary = dstDoc.library;
dstDoc.clipPaste();


]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if this will help you, but I was able to move clips between FLAs using JSFL with this approach<br />
0. Open source FLA<br />
1. Select a clip from your library,<br />
2. place it on a new scene,<br />
3. copy it to the clipboard<br />
4. Select another FLA<br />
5. Paste the clip to the stage to add it to the library</p>
<p>// Add a temporary scene for placing each compiled component<br />
 var addSceneResult = srcDoc.addNewScene();</p>
<p> // Select the compiled clip<br />
selectResult = srcLibrary.selectItem(compiledClip);</p>
<p>// Add compiled clip to the new scene<br />
var addResult = srcLibrary.addItemToDocument({x:1, y:1});<br />
srcDoc.selectAll(); // Select the compiled clip<br />
srcDoc.clipCut();   // Remove compiled clip from stage and place on clipboard</p>
<p>var deleteResult = srcLibrary.deleteItem(compiledClip);<br />
// Remove compiled clip from library<br />
                srcDoc.deleteScene();</p>
<p>//create a new FLA<br />
var dstDoc = fl.createDocument(&#8216;timeline&#8217;);<br />
var dstLibrary = dstDoc.library;<br />
dstDoc.clipPaste();</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: spender		</title>
		<link>https://jessewarden.com/2004/04/failed-component-preview-command.html/comment-page-1#comment-1575</link>

		<dc:creator><![CDATA[spender]]></dc:creator>
		<pubDate>Fri, 22 Apr 2005 03:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=493#comment-1575</guid>

					<description><![CDATA[Hi Jester,

Yup. I found the same thing. I&#039;m hoping that this file may help. Haven&#039;t looked into it properly yet,  but I suspect it might hold the answer. 

From the London MM UserGroup forum:
&lt;a href=&quot;http://www.londonmmug.org/downloads/presentations/200502/mergeTool.zip&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.londonmmug.org/downloads/presentations/200502/mergeTool.zip&quot; rel=&quot;nofollow&quot;&gt;http://www.londonmmug.org/downloads/presentations/200502/mergeTool.zip&lt;/a&gt;

... it is the source for a UI Panel or something similar that merges the libraries of two .fla files.]]></description>
			<content:encoded><![CDATA[<p>Hi Jester,</p>
<p>Yup. I found the same thing. I&#8217;m hoping that this file may help. Haven&#8217;t looked into it properly yet,  but I suspect it might hold the answer. </p>
<p>From the London MM UserGroup forum:<br />
<a href="http://www.londonmmug.org/downloads/presentations/200502/mergeTool.zip" rel="nofollow"></a><br />
<a href="http://www.londonmmug.org/downloads/presentations/200502/mergeTool.zip" rel="nofollow">http://www.londonmmug.org/downloads/presentations/200502/mergeTool.zip</a></p>
<p>&#8230; it is the source for a UI Panel or something similar that merges the libraries of two .fla files.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
