<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Empty movieClip linked to a class without beeing in the library</title>
	<link>http://nicob.info/blog/empty-movieclip-linked-to-a-class-without-beeing-in-the-library/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sat, 04 Feb 2012 17:24:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: cddin</title>
		<link>http://nicob.info/blog/empty-movieclip-linked-to-a-class-without-beeing-in-the-library/#comment-412</link>
		<author>cddin</author>
		<pubDate>Wed, 09 Apr 2008 10:17:42 +0000</pubDate>
		<guid>http://nicob.info/blog/empty-movieclip-linked-to-a-class-without-beeing-in-the-library/#comment-412</guid>
		<description>"Both methods are equivalent and lead to the same result"

but the thing is which one is the best practise?

I agree with eka.. I belive that there are reason macromedia(now adobe) provide __proto__ key word --&#62; it is to solve this situation

just my 2 cents</description>
		<content:encoded><![CDATA[<p>&#8220;Both methods are equivalent and lead to the same result&#8221;</p>
<p>but the thing is which one is the best practise?</p>
<p>I agree with eka.. I belive that there are reason macromedia(now adobe) provide __proto__ key word &#8211;&gt; it is to solve this situation</p>
<p>just my 2 cents</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicoB</title>
		<link>http://nicob.info/blog/empty-movieclip-linked-to-a-class-without-beeing-in-the-library/#comment-218</link>
		<author>nicoB</author>
		<pubDate>Sat, 29 Sep 2007 09:13:36 +0000</pubDate>
		<guid>http://nicob.info/blog/empty-movieclip-linked-to-a-class-without-beeing-in-the-library/#comment-218</guid>
		<description>Thank you for the tip EKA.
Both methods are equivalent and lead to the same result.</description>
		<content:encoded><![CDATA[<p>Thank you for the tip EKA.<br />
Both methods are equivalent and lead to the same result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ekameleon</title>
		<link>http://nicob.info/blog/empty-movieclip-linked-to-a-class-without-beeing-in-the-library/#comment-215</link>
		<author>ekameleon</author>
		<pubDate>Wed, 26 Sep 2007 11:24:19 +0000</pubDate>
		<guid>http://nicob.info/blog/empty-movieclip-linked-to-a-class-without-beeing-in-the-library/#comment-215</guid>
		<description>&lt;p&gt;Hello :)&lt;/p&gt;
&lt;p&gt;it's really not the better solution :)&lt;/p&gt;
&lt;p&gt;The best solution is to use the __proto__ key word :&lt;/p&gt;
&lt;p&gt;[code]&lt;/p&gt;
&lt;p&gt;var mc:MovieClip = createEmptyMovieClip("myClip", 1 ) ;&lt;br /&gt;
mc.__proto__ = net.nicoB.LinkedClass.prototype ; // change the inherit&lt;br /&gt;
net.nicoB.LinkedClass.call(mc) ; // launch the constructor&lt;/p&gt;
&lt;p&gt;[/code]&lt;/p&gt;
&lt;p&gt;or with an attachMovie :&lt;br /&gt;
[code]&lt;br /&gt;
var mc:MovieClip = attachMovie("mcLinked", "myClip", 1 ) ;&lt;br /&gt;
mc.__proto__ = net.nicoB.LinkedClass.prototype ; // change the inherit&lt;br /&gt;
net.nicoB.LinkedClass.call(mc) ; // launch the constructor&lt;br /&gt;
[/code]&lt;/p&gt;
&lt;p&gt;In my framework i use a class to encapsulate this features :&lt;br /&gt;
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/factory/DisplayFactory.as&lt;/p&gt;
&lt;p&gt;EKA+ :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello <img src="http://nicob.info/blog/wp-includes/images/yahoo/yahoo1.gif" class="wp-smiley" /></p>
<p>it&#8217;s really not the better solution <img src="http://nicob.info/blog/wp-includes/images/yahoo/yahoo1.gif" class="wp-smiley" /></p>
<p>The best solution is to use the __proto__ key word :</p>
<p>[code]</p>
<p>var mc:MovieClip = createEmptyMovieClip(&#8221;myClip&#8221;, 1 ) ;<br />
mc.__proto__ = net.nicoB.LinkedClass.prototype ; // change the inherit<br />
net.nicoB.LinkedClass.call(mc) ; // launch the constructor</p>
<p>[/code]</p>
<p>or with an attachMovie :<br />
[code]<br />
var mc:MovieClip = attachMovie(&#8221;mcLinked&#8221;, &#8220;myClip&#8221;, 1 ) ;<br />
mc.__proto__ = net.nicoB.LinkedClass.prototype ; // change the inherit<br />
net.nicoB.LinkedClass.call(mc) ; // launch the constructor<br />
[/code]</p>
<p>In my framework i use a class to encapsulate this features :<br />
<a href="http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/factory/DisplayFactory.as" rel="nofollow">http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/util/factory/DisplayFactory.as</a></p>
<p>EKA+ <img src="http://nicob.info/blog/wp-includes/images/yahoo/yahoo1.gif" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

