<?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>tool &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/tool/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sun, 20 Jun 2010 07:35:39 +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>tool &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>senocular.com TransformTool modification</title>
		<link>https://blog.sephiroth.it/2007/07/10/senocular-com-transformtool-modification/</link>
					<comments>https://blog.sephiroth.it/2007/07/10/senocular-com-transformtool-modification/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Tue, 10 Jul 2007 20:49:30 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[senocular]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[trasnform]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=226</guid>

					<description><![CDATA[Recently I used the great <a href="http://www.senocular.com/demo/TransformToolAS3/TransformTool.html'" target="_blank">senocular Transform Tool</a> for a Flex2 project.<br />
We just needed to made a little modification to the way the scale transformation worked. Something like the <strong>Photoshop's Transform tool</strong>, where the registration point only affects rotation, while all the scale controls are independent from the registration point.<br />
For this reason I modified a bit the TransformTool code to allow this feature to be set on/off (I called this scaleWithRegistration)
]]></description>
										<content:encoded><![CDATA[<p>Recently I used the great <a href="http://www.senocular.com/demo/TransformToolAS3/TransformTool.html" target="_blank">senocular Transform Tool</a> for a Flex2 project.<br />
We just needed to made a little modification to the way the scale transformation worked. Something like the <strong>Photoshop&#8217;s Transform tool</strong>, where the registration point only affects rotation, while all the scale controls are independent from the registration point.<br />
For this reason I modified a bit the TransformTool code to allow this feature to be set on/off (I called this scaleWithRegistration)</p>
<p>Hold down <strong>SHIFT</strong> key while rotating or scaling to constrain transformation<br />
<strong>Double click</strong> to complete transformation.</p>
<p>[kml_flashembed publishmethod=&#8221;static&#8221; fversion=&#8221;10.0.22&#8243; movie=&#8221;https://blog.sephiroth.it/wp-content/uploads/2007/07/test_transformation.swf&#8221; width=&#8221;400&#8243; height=&#8221;300&#8243; targetclass=&#8221;flashmovie&#8221; bgColor=&#8221;#cccccc&#8221;]</p>
<p><a href="http://adobe.com/go/getflashplayer"><img decoding="async" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
<p>[/kml_flashembed]</p>
<p>This is the code used in the mxml Application file:<br />
<code lang="actionscript"><br />
< ?xml version="1.0" encoding="utf-8"?><br />
<mx:application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" backgroundGradientColors="[#ffffff,#ffffff]" viewSourceURL="/test/flex/2/transform_tool/srcview/index.html"><br />
	<mx:image x="10" y="45" source="http://farm2.static.flickr.com/1437/560413557_04318cdc39_m.jpg" id="image" complete="onImageComplete(event)"/><br />
	<mx:script><br />
		< ![CDATA[
			import com.senocular.display.TransformTool;
			[Bindable]
			private var tool:TransformTool;
			private function init():void
			{
			}
			private function onImageComplete(event:Event):void
			{
				var timer:Timer = new Timer(1000,1);
				timer.addEventListener(TimerEvent.TIMER, function(evt:TimerEvent):void
				{
					createTool(null);
				});
				timer.start();
				image.addEventListener(MouseEvent.CLICK, createTool);
			}
			private function onDoubleClick(event:MouseEvent):void
			{
				removeChild(tool);
				tool = null;
			}
			private function createTool(event:MouseEvent):void
			{
				if(!tool)
				{
					tool = new TransformTool();
					tool.addEventListener(MouseEvent.DOUBLE_CLICK, onDoubleClick);
					tool.target = image;
					tool.scaleWithRegistration = scale_registration.selected;
					addChild(tool);
				}
			}
		]]&gt;<br />
	</mx:script><br />
	<mx:checkbox x="10" y="10" id="scale_registration" label="scale with registration" selected="{tool.scaleWithRegistration}" click="{tool.scaleWithRegistration = event.target.selected}" enabled="{tool != null}"/><br />
</mx:application><br />
</code></p>
<p>[attachments docid=1018 force_saveas=&#8221;1&#8243; logged_users=&#8221;0&#8243;]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2007/07/10/senocular-com-transformtool-modification/feed/</wfw:commentRss>
			<slash:comments>40</slash:comments>
		
		
			</item>
	</channel>
</rss>
