<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Flex component transformation with ObjectHandles</title>
	<atom:link href="http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/feed/" rel="self" type="application/rss+xml" />
	<link>http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/</link>
	<description>It's a magical world. Let's go exploring.</description>
	<lastBuildDate>Thu, 02 Sep 2010 23:58:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Joel</title>
		<link>http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/comment-page-1/#comment-50</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sun, 20 Apr 2008 16:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/#comment-50</guid>
		<description>The problem is that the TransformTool is not a UIComponent, so you probably need to add it to a UIComponent as a child, and then add that to the stage. I will work up a proper example for you, but try this:
&lt;pre lang=&quot;actionscript&quot;&gt;
var component:UIComponent = new UIComponent( );
component.addChild( defaultTool );
this.addChild( component );&lt;/pre&gt;
It has been a while, let me get it working and I will post it.

Cheers,

Joel</description>
		<content:encoded><![CDATA[<p>The problem is that the TransformTool is not a UIComponent, so you probably need to add it to a UIComponent as a child, and then add that to the stage. I will work up a proper example for you, but try this:</p>

<div class="wp_codebox"><table><tr id="p361"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p36code1"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> component:UIComponent = <span style="color: #000000; font-weight: bold;">new</span> UIComponent<span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#41;</span>;
component.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span> defaultTool <span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span> component <span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>It has been a while, let me get it working and I will post it.</p>
<p>Cheers,</p>
<p>Joel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blaight</title>
		<link>http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/comment-page-1/#comment-49</link>
		<dc:creator>Blaight</dc:creator>
		<pubDate>Sun, 20 Apr 2008 10:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/#comment-49</guid>
		<description>sorry, some characters can not be displayed correctly above.
I use TransformTool in a function in a mx:Script block in mxml file as :
private var defaultTool : TransformTool;
private function initTool() : void {
	defaultTool = new TransformTool();
	canvas.addChild(defaultTool);
	defaultTool.target = img;
}

mx:Canvas id=&#039;canvas&#039; ...
    mx:Image id=&#039;img&#039; ....</description>
		<content:encoded><![CDATA[<p>sorry, some characters can not be displayed correctly above.<br />
I use TransformTool in a function in a mx:Script block in mxml file as :<br />
private var defaultTool : TransformTool;<br />
private function initTool() : void {<br />
	defaultTool = new TransformTool();<br />
	canvas.addChild(defaultTool);<br />
	defaultTool.target = img;<br />
}</p>
<p>mx:Canvas id=&#8217;canvas&#8217; &#8230;<br />
    mx:Image id=&#8217;img&#8217; &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blaight</title>
		<link>http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/comment-page-1/#comment-48</link>
		<dc:creator>Blaight</dc:creator>
		<pubDate>Sun, 20 Apr 2008 09:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/#comment-48</guid>
		<description>Hey,I am so interested about that you had ever used the &#039;TransformTool&#039; library in your Flex project. But there is little examples showing how to use it in flex, Would you please share some example about how to use &#039;TransformTool&#039; in Flex? I have tried as such a way:










but it failed at line
  canvas.addChild(defaultTool);
Can you give any hints? Thanks.</description>
		<content:encoded><![CDATA[<p>Hey,I am so interested about that you had ever used the &#8216;TransformTool&#8217; library in your Flex project. But there is little examples showing how to use it in flex, Would you please share some example about how to use &#8216;TransformTool&#8217; in Flex? I have tried as such a way:</p>
<p>but it failed at line<br />
  canvas.addChild(defaultTool);<br />
Can you give any hints? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Hughes</title>
		<link>http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/comment-page-1/#comment-47</link>
		<dc:creator>Marc Hughes</dc:creator>
		<pubDate>Sat, 22 Mar 2008 12:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/#comment-47</guid>
		<description>Hey Joel, glad you like it.  And thanks for the mention :)

-Marc (OH Author)</description>
		<content:encoded><![CDATA[<p>Hey Joel, glad you like it.  And thanks for the mention <img src='http://joelhooks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>-Marc (OH Author)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
