<?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: JSFL Rename Folder</title>
	<atom:link href="http://www.stevensacks.net/2008/05/26/jsfl-rename-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevensacks.net/2008/05/26/jsfl-rename-folder/</link>
	<description>Adobe, Flash, Flex, AIR, Technology</description>
	<lastBuildDate>Thu, 18 Mar 2010 22:50:52 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sven</title>
		<link>http://www.stevensacks.net/2008/05/26/jsfl-rename-folder/comment-page-1/#comment-4219</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Sun, 21 Sep 2008 15:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=108#comment-4219</guid>
		<description>I&#039;m trying to achieve, in my world a very simple task, of adding a (very large) selection of &#039;groups&#039; to the library and edit them one by one (adding a layer, draw a rectangle).

I can convert the symbols fine. I can enter edit mode just fine. I can add a layer just fine. And I can draw a rectangle just fine.
My problem is that the added rectangle is placed in the top left corner of the stage, and not the top left corner of the symbol. And how do I specify the rectangle to the width and height of the symbol itself addNewRectangle({left:0, top:0, right: width, bottom: height}, 0)?

Sorry, if this is not the place to ask things like this, but I&#039;ve been fighting this for days, and can&#039;t seem to find anywhere else to go on Google.</description>
		<content:encoded><![CDATA[<p>I&#039;m trying to achieve, in my world a very simple task, of adding a (very large) selection of &#039;groups&#039; to the library and edit them one by one (adding a layer, draw a rectangle).</p>
<p>I can convert the symbols fine. I can enter edit mode just fine. I can add a layer just fine. And I can draw a rectangle just fine.<br />
My problem is that the added rectangle is placed in the top left corner of the stage, and not the top left corner of the symbol. And how do I specify the rectangle to the width and height of the symbol itself addNewRectangle({left:0, top:0, right: width, bottom: height}, 0)?</p>
<p>Sorry, if this is not the place to ask things like this, but I&#039;ve been fighting this for days, and can&#039;t seem to find anywhere else to go on Google.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Penner</title>
		<link>http://www.stevensacks.net/2008/05/26/jsfl-rename-folder/comment-page-1/#comment-2357</link>
		<dc:creator>Robert Penner</dc:creator>
		<pubDate>Tue, 15 Jul 2008 19:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=108#comment-2357</guid>
		<description>Oops, I didn&#039;t really read your code before replying. I just assumed you were talking about library folders.</description>
		<content:encoded><![CDATA[<p>Oops, I didn&#039;t really read your code before replying. I just assumed you were talking about library folders.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Penner</title>
		<link>http://www.stevensacks.net/2008/05/26/jsfl-rename-folder/comment-page-1/#comment-2356</link>
		<dc:creator>Robert Penner</dc:creator>
		<pubDate>Tue, 15 Jul 2008 19:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=108#comment-2356</guid>
		<description>Actually, there are a couple of JSAPIs that can rename folders, but the UI doesn&#039;t get updated right away.

You can use either of these:

fl.getDocumentDOM().library.renameItem(&quot;new name&quot;);

var selItems = fl.getDocumentDOM().library.getSelectedItems();
var item0 = selItems[0];
item0.name = &#039;foo&#039;;
fl.trace(&#039;item name: &#039; + item0.name);

The name will be changed, but will not appear to be until you force a library refresh, e.g. by adding or renaming another item or updating use counts.</description>
		<content:encoded><![CDATA[<p>Actually, there are a couple of JSAPIs that can rename folders, but the UI doesn&#039;t get updated right away.</p>
<p>You can use either of these:</p>
<p>fl.getDocumentDOM().library.renameItem(&#034;new name&#034;);</p>
<p>var selItems = fl.getDocumentDOM().library.getSelectedItems();<br />
var item0 = selItems[0];<br />
item0.name = &#039;foo&#039;;<br />
fl.trace(&#039;item name: &#039; + item0.name);</p>
<p>The name will be changed, but will not appear to be until you force a library refresh, e.g. by adding or renaming another item or updating use counts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timbo</title>
		<link>http://www.stevensacks.net/2008/05/26/jsfl-rename-folder/comment-page-1/#comment-1732</link>
		<dc:creator>Timbo</dc:creator>
		<pubDate>Sat, 14 Jun 2008 14:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=108#comment-1732</guid>
		<description>Thanks for the great JSFL help on your blog! Is it also possible to convert layers to a movieclip?

I have about 1200 layers, on each layer 1 group.. and i like to convert each layer / group to a movieclip.

Thanks in advance,
Tim.</description>
		<content:encoded><![CDATA[<p>Thanks for the great JSFL help on your blog! Is it also possible to convert layers to a movieclip?</p>
<p>I have about 1200 layers, on each layer 1 group.. and i like to convert each layer / group to a movieclip.</p>
<p>Thanks in advance,<br />
Tim.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
