<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: The Event Object</title>
	<link>http://www.learningactionscript3.com/2007/11/17/the-event-object/</link>
	<description>A digital supplement for the O'Reilly book</description>
	<pubDate>Thu, 20 Nov 2008 08:47:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Rich</title>
		<link>http://www.learningactionscript3.com/2007/11/17/the-event-object/#comment-38</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Mon, 24 Mar 2008 05:37:07 +0000</pubDate>
		<guid>http://www.learningactionscript3.com/2007/11/17/the-event-object/#comment-38</guid>
		<description>Thanks for letting us know about your success, Rodney!</description>
		<content:encoded><![CDATA[<p>Thanks for letting us know about your success, Rodney!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodney Gracia</title>
		<link>http://www.learningactionscript3.com/2007/11/17/the-event-object/#comment-30</link>
		<dc:creator>Rodney Gracia</dc:creator>
		<pubDate>Wed, 27 Feb 2008 17:26:10 +0000</pubDate>
		<guid>http://www.learningactionscript3.com/2007/11/17/the-event-object/#comment-30</guid>
		<description>A colleague and I are designing an application that uses drag and drop functionality. The movie clips being dragged have a dynamic text field inside that will be populated programmatically with AS. We have added the listeners that check for MouseDown and MouseUp to the movie clips (parents of the text field). Now we reference the movie clip being dragged in the test functions that start and stop the dragging as "event.target"; we noticed that if the object below the mouse when dragging begins is the movie clip background, not the text field, the dragging works, however, if you happen to click on the dynamic text field and start dragging, the reference to "event.target" generates an error: 

ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField and there is no default value.
	at 00_start_stop_drag_fla::MainTimeline/onStartDrag()
myMovieClip2

So even though we are dragging an entire movie clip, because of the way event.target works it fails when the target is the text field inside the MC. This article showed me how to fix that. We use currentTarget instead and the app now works well.</description>
		<content:encoded><![CDATA[<p>A colleague and I are designing an application that uses drag and drop functionality. The movie clips being dragged have a dynamic text field inside that will be populated programmatically with AS. We have added the listeners that check for MouseDown and MouseUp to the movie clips (parents of the text field). Now we reference the movie clip being dragged in the test functions that start and stop the dragging as &#8220;event.target&#8221;; we noticed that if the object below the mouse when dragging begins is the movie clip background, not the text field, the dragging works, however, if you happen to click on the dynamic text field and start dragging, the reference to &#8220;event.target&#8221; generates an error: </p>
<p>ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField and there is no default value.<br />
	at 00_start_stop_drag_fla::MainTimeline/onStartDrag()<br />
myMovieClip2</p>
<p>So even though we are dragging an entire movie clip, because of the way event.target works it fails when the target is the text field inside the MC. This article showed me how to fix that. We use currentTarget instead and the app now works well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
