<?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: Drawing complex rectangles in Flex using the GraphicsUtil class</title>
	<atom:link href="http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: someone</title>
		<link>http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/comment-page-1/#comment-6434</link>
		<dc:creator>someone</dc:creator>
		<pubDate>Mon, 23 Nov 2009 22:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/#comment-6434</guid>
		<description>if you draw backwards (start right, drag to the left),
it creates something worse ;)</description>
		<content:encoded><![CDATA[<p>if you draw backwards (start right, drag to the left),<br />
it creates something worse ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reny Mohan</title>
		<link>http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/comment-page-1/#comment-6412</link>
		<dc:creator>Reny Mohan</dc:creator>
		<pubDate>Fri, 20 Nov 2009 05:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/#comment-6412</guid>
		<description>thanx alot!!!! i implimented this feature in my project..</description>
		<content:encoded><![CDATA[<p>thanx alot!!!! i implimented this feature in my project..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priyanka Rane</title>
		<link>http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/comment-page-1/#comment-1108</link>
		<dc:creator>Priyanka Rane</dc:creator>
		<pubDate>Mon, 31 Mar 2008 06:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/#comment-1108</guid>
		<description>Hey Peter,

Thanks for giving this example of drawing rectangle using mouse....it helped me in learning drawing in my assignment....Thanks once again Peter for your great help....</description>
		<content:encoded><![CDATA[<p>Hey Peter,</p>
<p>Thanks for giving this example of drawing rectangle using mouse&#8230;.it helped me in learning drawing in my assignment&#8230;.Thanks once again Peter for your great help&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rconceiver</title>
		<link>http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/comment-page-1/#comment-1105</link>
		<dc:creator>rconceiver</dc:creator>
		<pubDate>Sat, 22 Mar 2008 07:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/#comment-1105</guid>
		<description>Thanks Peter,

At least it has given me a start...

Thanks once again...:)</description>
		<content:encoded><![CDATA[<p>Thanks Peter,</p>
<p>At least it has given me a start&#8230;</p>
<p>Thanks once again&#8230;:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/comment-page-1/#comment-1106</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 20 Mar 2008 15:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/#comment-1106</guid>
		<description>rconceiver,

It has a few [major] bugs, but this may get you started:
&lt;pre class=&quot;code&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;vertical&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.containers.Canvas;

            private var x1:uint;
            private var y1:uint;
            private var x2:uint;
            private var y2:uint;

            private var isDrawing:Boolean = false;

            private function canvas_mouseDown(evt:MouseEvent):void {
                isDrawing = true;
                x1 = evt.localX;
                y1 = evt.localY;
            }

            private function canvas_mouseUp(evt:MouseEvent):void {
                isDrawing = false;
                x2 = evt.localX;
                y2 = evt.localY;

                var w:uint = x2 - x1;
                var h:uint = y2 - y1;

                var can:Box = evt.currentTarget as Box;
                can.graphics.beginFill(0xFF0000, 0.4);
                can.graphics.drawRect(x1, y1, w, h);
                can.graphics.endFill();

                trace(x1, y1, x2, y2);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Canvas id=&quot;canvas&quot;
            backgroundColor=&quot;white&quot;
            width=&quot;100%&quot;
            height=&quot;100%&quot;&gt;
        &lt;mx:Box id=&quot;box&quot;
                width=&quot;100%&quot;
                height=&quot;100%&quot;
                mouseDown=&quot;canvas_mouseDown(event);&quot;
                mouseUp=&quot;canvas_mouseUp(event);&quot; /&gt;
    &lt;/mx:Canvas&gt;


&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>rconceiver,</p>
<p>It has a few [major] bugs, but this may get you started:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.containers.Canvas;

            private var x1:uint;
            private var y1:uint;
            private var x2:uint;
            private var y2:uint;

            private var isDrawing:Boolean = false;

            private function canvas_mouseDown(evt:MouseEvent):void {
                isDrawing = true;
                x1 = evt.localX;
                y1 = evt.localY;
            }

            private function canvas_mouseUp(evt:MouseEvent):void {
                isDrawing = false;
                x2 = evt.localX;
                y2 = evt.localY;

                var w:uint = x2 - x1;
                var h:uint = y2 - y1;

                var can:Box = evt.currentTarget as Box;
                can.graphics.beginFill(0xFF0000, 0.4);
                can.graphics.drawRect(x1, y1, w, h);
                can.graphics.endFill();

                trace(x1, y1, x2, y2);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Canvas id="canvas"
            backgroundColor="white"
            width="100%"
            height="100%"&gt;
        &lt;mx:Box id="box"
                width="100%"
                height="100%"
                mouseDown="canvas_mouseDown(event);"
                mouseUp="canvas_mouseUp(event);" /&gt;
    &lt;/mx:Canvas&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rconceiver</title>
		<link>http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/comment-page-1/#comment-1107</link>
		<dc:creator>rconceiver</dc:creator>
		<pubDate>Thu, 20 Mar 2008 12:01:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/#comment-1107</guid>
		<description>hi peter,

I could not find any example of drawing API for creating basic shapes(e.g. Rectangle) with mouse!

Or at least can you suggest any site/blog where I can learn about it or see some example.

Thanks in advance :)

rconceiver</description>
		<content:encoded><![CDATA[<p>hi peter,</p>
<p>I could not find any example of drawing API for creating basic shapes(e.g. Rectangle) with mouse!</p>
<p>Or at least can you suggest any site/blog where I can learn about it or see some example.</p>
<p>Thanks in advance :)</p>
<p>rconceiver</p>
]]></content:encoded>
	</item>
</channel>
</rss>

