<?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: Changing a MovieClip&#8217;s registration point painlessly</title>
	<atom:link href="http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/feed/" rel="self" type="application/rss+xml" />
	<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/</link>
	<description></description>
	<lastBuildDate>Wed, 03 Mar 2010 02:30:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zeh</title>
		<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/comment-page-1/#comment-838</link>
		<dc:creator>Zeh</dc:creator>
		<pubDate>Wed, 01 Apr 2009 14:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://zehfernando.com/?p=492#comment-838</guid>
		<description>Hassan: if both classes were implemented using a decorator pattern (or even a pseudo-decorator with composition), yeah, it&#039;d work.

The way they are now, in the examples, for you to combine the functionality, you&#039;d have to merge the two classes, adding all the functions and methods from one class to the other, or extending from one class to the other.</description>
		<content:encoded><![CDATA[<p>Hassan: if both classes were implemented using a decorator pattern (or even a pseudo-decorator with composition), yeah, it&#8217;d work.</p>
<p>The way they are now, in the examples, for you to combine the functionality, you&#8217;d have to merge the two classes, adding all the functions and methods from one class to the other, or extending from one class to the other.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hassan</title>
		<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/comment-page-1/#comment-837</link>
		<dc:creator>Hassan</dc:creator>
		<pubDate>Wed, 01 Apr 2009 13:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://zehfernando.com/?p=492#comment-837</guid>
		<description>Thanks Zeh! I  thought that this way will be easier for end-developer, but it seems  that I was wrong. Using this method:

var mc:MovieClip = new MovieClip();
var pmc:PointMovieClip = new PointMovieClip(mc);

is good, but can I use a code like this? var dmc:DesignerMovieClip = new DesignerMovieClip(pmc);? To have both functionality of DesignerMovieClip and pmc:PointMovieClip? Is it a good way to do this or not?

Thanks! I really appreciate your notes!</description>
		<content:encoded><![CDATA[<p>Thanks Zeh! I  thought that this way will be easier for end-developer, but it seems  that I was wrong. Using this method:</p>
<p>var mc:MovieClip = new MovieClip();<br />
var pmc:PointMovieClip = new PointMovieClip(mc);</p>
<p>is good, but can I use a code like this? var dmc:DesignerMovieClip = new DesignerMovieClip(pmc);? To have both functionality of DesignerMovieClip and pmc:PointMovieClip? Is it a good way to do this or not?</p>
<p>Thanks! I really appreciate your notes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeh</title>
		<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/comment-page-1/#comment-834</link>
		<dc:creator>Zeh</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:35:34 +0000</pubDate>
		<guid isPermaLink="false">http://zehfernando.com/?p=492#comment-834</guid>
		<description>Hassan: it&#039;s a bigger problem, but the right thing to do would probably be using a &lt;a href=&quot;http://en.wikipedia.org/wiki/Decorator_pattern&quot; rel=&quot;nofollow&quot;&gt;decorator pattern&lt;/a&gt;. You&#039;d still need a separate class, and to use it instead of your MC, but at least in this case you could apply it to *any* class. It&#039;d work like that:

var mc:MovieClip = new MovieClip();
var pmc:PointMovieClip = new PointMovieClip(mc);

Using decorators actually makes a lot more sense when you need to add features like registration points, coloring and such to existing classes - specially MC classes since it&#039;s a lot more common for people to have their own display classes and they can choose *which* features to add.

Remember this example is supposed to be an example of how you can extend properties and override original properties, it&#039;s a getter/setter syntax example, instead of the best practice ever to add registration points to movieclips.

PS. Your english is fine, don&#039;t worry.</description>
		<content:encoded><![CDATA[<p>Hassan: it&#8217;s a bigger problem, but the right thing to do would probably be using a <a href="http://en.wikipedia.org/wiki/Decorator_pattern" rel="nofollow">decorator pattern</a>. You&#8217;d still need a separate class, and to use it instead of your MC, but at least in this case you could apply it to *any* class. It&#8217;d work like that:</p>
<p>var mc:MovieClip = new MovieClip();<br />
var pmc:PointMovieClip = new PointMovieClip(mc);</p>
<p>Using decorators actually makes a lot more sense when you need to add features like registration points, coloring and such to existing classes &#8211; specially MC classes since it&#8217;s a lot more common for people to have their own display classes and they can choose *which* features to add.</p>
<p>Remember this example is supposed to be an example of how you can extend properties and override original properties, it&#8217;s a getter/setter syntax example, instead of the best practice ever to add registration points to movieclips.</p>
<p>PS. Your english is fine, don&#8217;t worry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hassan</title>
		<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/comment-page-1/#comment-833</link>
		<dc:creator>Hassan</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://zehfernando.com/?p=492#comment-833</guid>
		<description>I was thinking it would be better if could extend the class itself to add these methods to. I mean, use something like var mc:MovieClip = new MovieClip() and mc had the functionality that var mc:PointMovieClip = new PointMovieClip() has. Is that possible? I can&#039;t speak english very well, sorry for my english.</description>
		<content:encoded><![CDATA[<p>I was thinking it would be better if could extend the class itself to add these methods to. I mean, use something like var mc:MovieClip = new MovieClip() and mc had the functionality that var mc:PointMovieClip = new PointMovieClip() has. Is that possible? I can&#8217;t speak english very well, sorry for my english.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/comment-page-1/#comment-815</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sun, 29 Mar 2009 04:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://zehfernando.com/?p=492#comment-815</guid>
		<description>Oleg you could just take this class and pass in the movieclip reference to the constructor, an init method, or add a property that sets it for composition usage.</description>
		<content:encoded><![CDATA[<p>Oleg you could just take this class and pass in the movieclip reference to the constructor, an init method, or add a property that sets it for composition usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeh</title>
		<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/comment-page-1/#comment-773</link>
		<dc:creator>Zeh</dc:creator>
		<pubDate>Mon, 16 Mar 2009 14:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://zehfernando.com/?p=492#comment-773</guid>
		<description>Olegs: feel free to post your implementation to serve as an example.</description>
		<content:encoded><![CDATA[<p>Olegs: feel free to post your implementation to serve as an example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olegs Balss</title>
		<link>http://zehfernando.com/2009/changing-a-movieclips-registration-point-painlessly/comment-page-1/#comment-772</link>
		<dc:creator>Olegs Balss</dc:creator>
		<pubDate>Mon, 16 Mar 2009 09:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://zehfernando.com/?p=492#comment-772</guid>
		<description>It would be much more usable if you would choose composition over inheritance.</description>
		<content:encoded><![CDATA[<p>It would be much more usable if you would choose composition over inheritance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
