<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>getBounds &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/getbounds/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Thu, 24 Jun 2010 07:08:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>getBounds &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Multiple objects using Senocular TransformTool</title>
		<link>https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/</link>
					<comments>https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sun, 21 Jun 2009 19:32:00 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[getBounds]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[senocular]]></category>
		<category><![CDATA[transform]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=275</guid>

					<description><![CDATA[Senocular TransformTool is one of the best and most used components around the net. It is really useful for those (include me) who don&#8217;t want to fight against Matrix, concatenation of Matrix and all those painful stuff&#8230; The only &#8216;lack&#8217; of that component is that it does not support multiple objects as target. If you &#8230; <a href="https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/" class="more-link">Continue reading <span class="screen-reader-text">Multiple objects using Senocular TransformTool</span></a>]]></description>
										<content:encoded><![CDATA[<p>Senocular <a href="http://www.senocular.com/index.php?id=1.372" target="_blank">TransformTool</a> is one of the best and most used components around the net. It is really useful for those (include me) who don&#8217;t want to fight against Matrix, concatenation of Matrix and all those painful stuff&#8230;</p>
<p>The only &#8216;lack&#8217; of that component is that it does not support multiple objects as target. If you want to transform n array of elements at the same time you should have all those elements in the same parent DisplayObjectContainer and then set that parent as target of TransformTool.</p>
<p>But maybe sometimes this is not possible due to various reason and you want to use different items with different parents as dataprovider.</p>
<p>This is the solution I actually use for that particular situation (Remember that I&#8217;m using a <a title="senocular.com TransformTool modification" href="https://blog.sephiroth.it/2007/07/10/senocular-com-transformtool-modification/">modified version</a> of the TransformTool)</p>
<p>This is the final result: ( Ctrl+click on the tree leaves to multiple selection )</p>
<figure id="attachment_1157" aria-describedby="caption-attachment-1157" style="width: 395px" class="wp-caption alignnone"><a href="/wp-content/uploads/2009/06/senocular_multiple.swf"><img fetchpriority="high" decoding="async" class="size-full wp-image-1157" title="Senocular Transform Tool" src="https://blog.sephiroth.it/wp-content/uploads/2009/06/Screen-shot-2010-06-24-at-9.04.29-AM.png" alt="" width="395" height="295" srcset="https://blog.sephiroth.it/wp-content/uploads/2009/06/Screen-shot-2010-06-24-at-9.04.29-AM.png 395w, https://blog.sephiroth.it/wp-content/uploads/2009/06/Screen-shot-2010-06-24-at-9.04.29-AM-300x224.png 300w" sizes="(max-width: 395px) 100vw, 395px" /></a><figcaption id="caption-attachment-1157" class="wp-caption-text">Live Demo of the Trasform Tool using multiple objects</figcaption></figure>
<p>( <a href="/wp-content/uploads/2009/06/senocular_multiple.zip">Here you can download</a> download the source files ).</p>
<p>In few words the solution I found is this:</p>
<p>Create a temporary layer which will be the TransformTool target.<br />
For every item in the selection Array create a temporary shape with the size of the getBounds() of the real object. Store this shape into the temporary layer, assigning to it the concatenated matrix of the real object.</p>
<p>Once there&#8217;s a transformation of the temporary layer get every shape transform matrix and assign back to the original object.</p>
<p>Probably there are many and better solutions to do the same, this is just the one I found, maybe someone has better approach to this problem (and he is welcome here!)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2009/06/21/multiple-objects-using-senocular-transformtool/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
