<?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: Draggable Area with AS3</title>
	<atom:link href="http://www.riacodes.com/flash/draggable-area-with-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.riacodes.com/flash/draggable-area-with-as3/</link>
	<description>Resources, tutorials , tips &#38; tricks for RIA : Flex, Flash, Air, AS3</description>
	<lastBuildDate>Thu, 29 Jul 2010 05:04:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: VINH NGUYEN</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-1364</link>
		<dc:creator>VINH NGUYEN</dc:creator>
		<pubDate>Thu, 10 Jun 2010 21:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-1364</guid>
		<description>Chris : You could try to place an image on the stage and then use a draggable mask to emulate a camera&#039;s viewfinder...not sure if that was the effect you were trying to get. This is basically like a draggable spotlight.</description>
		<content:encoded><![CDATA[<p>Chris : You could try to place an image on the stage and then use a draggable mask to emulate a camera&#8217;s viewfinder&#8230;not sure if that was the effect you were trying to get. This is basically like a draggable spotlight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Mallan</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-1035</link>
		<dc:creator>Chris Mallan</dc:creator>
		<pubDate>Sat, 03 Apr 2010 14:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-1035</guid>
		<description>I need to do something similar to this. 

Rather than drag the image, i want to drag the &quot;camera&quot; so to speak, over the image to create the illusion that the image is staying still, if this makes sense :D</description>
		<content:encoded><![CDATA[<p>I need to do something similar to this. </p>
<p>Rather than drag the image, i want to drag the &#8220;camera&#8221; so to speak, over the image to create the illusion that the image is staying still, if this makes sense <img src='http://www.riacodes.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heeby</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-996</link>
		<dc:creator>heeby</dc:creator>
		<pubDate>Mon, 22 Mar 2010 17:44:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-996</guid>
		<description>Did you try changing all the &quot;area_mc&quot; references to your own movie clip&#039;s instance name?</description>
		<content:encoded><![CDATA[<p>Did you try changing all the &#8220;area_mc&#8221; references to your own movie clip&#8217;s instance name?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wouter</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-987</link>
		<dc:creator>Wouter</dc:creator>
		<pubDate>Thu, 18 Mar 2010 20:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-987</guid>
		<description>I don&#039;t get it. I&#039;m new to the whole AS3. I get errors when I execute de SWF.

1120: Acces of undifined property area_mc.

Can someone explain me how I can fix this...</description>
		<content:encoded><![CDATA[<p>I don&#8217;t get it. I&#8217;m new to the whole AS3. I get errors when I execute de SWF.</p>
<p>1120: Acces of undifined property area_mc.</p>
<p>Can someone explain me how I can fix this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luky1983</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-985</link>
		<dc:creator>luky1983</dc:creator>
		<pubDate>Thu, 18 Mar 2010 15:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-985</guid>
		<description>Hi everybody, can somebody help me with hit test in game.
My code:
var counter:Number = 0;
var startX:Number;
var startY:Number;

speak_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
speak_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
live_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
live_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
play_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
play_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
cook_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
cook_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
drink_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
drink_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
listen_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
listen_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
wear_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
wear_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
learn_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
learn_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);

function pickUp(event:MouseEvent):void {
event.target.startDrag(true);
reply_txt.text = “”;
event.target.parent.addChild(event.target);
startX = event.target.x;
startY = event.target.y;
}
function dropIt(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String = “target” + event.target.name;
var myTarget:DisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget != null &amp;&amp; event.target.dropTarget.parent == myTarget){
reply_txt.text = “Good Job!”;
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
event.target.buttonMode = false;
event.target.x = myTarget.x;
event.target.y = myTarget.y;
counter++;
} else {
reply_txt.text = “Try Again!”;
event.target.x = startX;
event.target.y = startY;
}
if(counter == 8){ //pocet spravnych umiestneni
reply_txt.text = “Congrats, you’re finished!”;
}
}

speak_mc.buttonMode = true;
live_mc.buttonMode = true;
play_mc.buttonMode = true;
cook_mc.buttonMode = true;
drink_mc.buttonMode = true;
listen_mc.buttonMode = true;
wear_mc.buttonMode = true;
learn_mc.buttonMode = true;

I want new tab that show points how many are correct and how many are incorrect.
I want to add check button with function that show new little window with results (correct and wrong points or answers). Function with counter of correct and incorrect answers.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi everybody, can somebody help me with hit test in game.<br />
My code:<br />
var counter:Number = 0;<br />
var startX:Number;<br />
var startY:Number;</p>
<p>speak_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
speak_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
live_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
live_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
play_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
play_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
cook_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
cook_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
drink_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
drink_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
listen_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
listen_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
wear_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
wear_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
learn_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
learn_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);</p>
<p>function pickUp(event:MouseEvent):void {<br />
event.target.startDrag(true);<br />
reply_txt.text = “”;<br />
event.target.parent.addChild(event.target);<br />
startX = event.target.x;<br />
startY = event.target.y;<br />
}<br />
function dropIt(event:MouseEvent):void {<br />
event.target.stopDrag();<br />
var myTargetName:String = “target” + event.target.name;<br />
var myTarget:DisplayObject = getChildByName(myTargetName);<br />
if (event.target.dropTarget != null &amp;&amp; event.target.dropTarget.parent == myTarget){<br />
reply_txt.text = “Good Job!”;<br />
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);<br />
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);<br />
event.target.buttonMode = false;<br />
event.target.x = myTarget.x;<br />
event.target.y = myTarget.y;<br />
counter++;<br />
} else {<br />
reply_txt.text = “Try Again!”;<br />
event.target.x = startX;<br />
event.target.y = startY;<br />
}<br />
if(counter == 8){ //pocet spravnych umiestneni<br />
reply_txt.text = “Congrats, you’re finished!”;<br />
}<br />
}</p>
<p>speak_mc.buttonMode = true;<br />
live_mc.buttonMode = true;<br />
play_mc.buttonMode = true;<br />
cook_mc.buttonMode = true;<br />
drink_mc.buttonMode = true;<br />
listen_mc.buttonMode = true;<br />
wear_mc.buttonMode = true;<br />
learn_mc.buttonMode = true;</p>
<p>I want new tab that show points how many are correct and how many are incorrect.<br />
I want to add check button with function that show new little window with results (correct and wrong points or answers). Function with counter of correct and incorrect answers.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jo</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-983</link>
		<dc:creator>jo</dc:creator>
		<pubDate>Thu, 18 Mar 2010 04:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-983</guid>
		<description>simply useful</description>
		<content:encoded><![CDATA[<p>simply useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamal98</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-855</link>
		<dc:creator>kamal98</dc:creator>
		<pubDate>Fri, 05 Feb 2010 21:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-855</guid>
		<description>Very simple but useful, Thanks.</description>
		<content:encoded><![CDATA[<p>Very simple but useful, Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Projektowanie wnętrz wrocław</title>
		<link>http://www.riacodes.com/flash/draggable-area-with-as3/comment-page-1/#comment-843</link>
		<dc:creator>Projektowanie wnętrz wrocław</dc:creator>
		<pubDate>Thu, 04 Feb 2010 23:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=1208#comment-843</guid>
		<description>thanks a lot! :D</description>
		<content:encoded><![CDATA[<p>thanks a lot! <img src='http://www.riacodes.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
