<?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"
	>
<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>"Test until fear turns to boredom"</description>
	<pubDate>Tue, 07 Oct 2008 10:18:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Joel</title>
		<link>http://joelhooks.com/2008/03/21/flex-component-transformation-with-objecthandles/#comment-420</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-420</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="actionscript"&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>
<pre lang="actionscript">
var component:UIComponent = new UIComponent( );
component.addChild( defaultTool );
this.addChild( component );</pre>
<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-419</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-419</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='canvas' ...
    mx:Image id='img' ....</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-418</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-418</guid>
		<description>Hey,I am so interested about that you had ever used the 'TransformTool' 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 'TransformTool' 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-330</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-330</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' /><br />
-Marc (OH Author)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.362 seconds -->
