<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Dynamic Class Linkage with __proto__</title>
	<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm</link>
	<description>Just Blog</description>
	<pubDate>Fri, 30 Jul 2010 09:13:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-3011</link>
		<pubDate>Sun, 03 Jun 2007 08:36:10 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-3011</guid>
					<description>// SET CLASS AFTER ATTACHING
var box = this.attachMovie ( 'box', 'box',  this.getNextHighestDepth() );
setObjectClass ( box, jgButton );

function setObjectClass ( object, Class ) 
{
	//		Changes and objects class. 
	//		Because you are only chnaging the class,
	//		the constructor will never be called.
	//
	//		USAGE: 
	//		setObjectClass ( myObject, myClass );
	
	 object.__proto__ = Class.prototype;	
}


// SET CLASS BEFORE ATTACHING
registerLinkIDClass ( 'box', jgButton );
var box = this.attachMovie ( 'box', 'box',  this.getNextHighestDepth() );

function registerLinkIDClass ( linkageID, Class ) 
{
	//		Associates a linkageID with a class. 
	//		When you use attachMovie ( 'linkageID', ... ),
	//		the movieClip will be an instance of that class.
	//
	//		USAGE: 
	//		registerLinkIDClass ( myMovieClipLinkageID, myClass );
	
	Object.registerClass( linkageID, Class ); // register class to library linkageID
}</description>
		<content:encoded><![CDATA[<p>// SET CLASS AFTER ATTACHING<br />
var box = this.attachMovie ( &#8216;box&#8217;, &#8216;box&#8217;,  this.getNextHighestDepth() );<br />
setObjectClass ( box, jgButton );</p>
<p>function setObjectClass ( object, Class )<br />
{<br />
	//		Changes and objects class.<br />
	//		Because you are only chnaging the class,<br />
	//		the constructor will never be called.<br />
	//<br />
	//		USAGE:<br />
	//		setObjectClass ( myObject, myClass );</p>
<p>	 object.__proto__ = Class.prototype;<br />
}</p>
<p>// SET CLASS BEFORE ATTACHING<br />
registerLinkIDClass ( &#8216;box&#8217;, jgButton );<br />
var box = this.attachMovie ( &#8216;box&#8217;, &#8216;box&#8217;,  this.getNextHighestDepth() );</p>
<p>function registerLinkIDClass ( linkageID, Class )<br />
{<br />
	//		Associates a linkageID with a class.<br />
	//		When you use attachMovie ( &#8216;linkageID&#8217;, &#8230; ),<br />
	//		the movieClip will be an instance of that class.<br />
	//<br />
	//		USAGE:<br />
	//		registerLinkIDClass ( myMovieClipLinkageID, myClass );</p>
<p>	Object.registerClass( linkageID, Class ); // register class to library linkageID<br />
}
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-690</link>
		<pubDate>Sat, 03 Mar 2007 05:57:24 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-690</guid>
					<description>__resolve
http://www.createage.com/blog/?p=107</description>
		<content:encoded><![CDATA[<p>__resolve<br />
<a href="http://www.createage.com/blog/?p=107" rel="nofollow">http://www.createage.com/blog/?p=107</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-542</link>
		<pubDate>Sun, 25 Feb 2007 20:29:41 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-542</guid>
					<description>Parametrized functions, Static properties and methods and Private properties
http://timotheegroleau.com/Flash/articles/private_static.htm</description>
		<content:encoded><![CDATA[<p>Parametrized functions, Static properties and methods and Private properties<br />
<a href="http://timotheegroleau.com/Flash/articles/private_static.htm" rel="nofollow">http://timotheegroleau.com/Flash/articles/private_static.htm</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-540</link>
		<pubDate>Sun, 25 Feb 2007 20:21:35 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-540</guid>
					<description>http://timotheegroleau.com/Flash/articles/private_static.htm

Function.prototype.cExtends = function(SuperClass)
{
this.prototype.__proto__ = SuperClass.prototype;
this.prototype.__constructor__ = SuperClass;
ASSetPropFlags(this.prototype, "__constructor__", 1);

this.__proto__ = SuperClass;
}

SuperTest = function() {};
SuperTest.addStaticProperty("prop", 5);

Test = function() {};
Test.prototype = new SuperTest();

or
Test.cExtends(SuperTest);</description>
		<content:encoded><![CDATA[<p><a href="http://timotheegroleau.com/Flash/articles/private_static.htm" rel="nofollow">http://timotheegroleau.com/Flash/articles/private_static.htm</a></p>
<p>Function.prototype.cExtends = function(SuperClass)<br />
{<br />
this.prototype.__proto__ = SuperClass.prototype;<br />
this.prototype.__constructor__ = SuperClass;<br />
ASSetPropFlags(this.prototype, &#8220;__constructor__&#8221;, 1);</p>
<p>this.__proto__ = SuperClass;<br />
}</p>
<p>SuperTest = function() {};<br />
SuperTest.addStaticProperty(&#8221;prop&#8221;, 5);</p>
<p>Test = function() {};<br />
Test.prototype = new SuperTest();</p>
<p>or<br />
Test.cExtends(SuperTest);
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-539</link>
		<pubDate>Sun, 25 Feb 2007 20:19:54 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-539</guid>
					<description>Different ways of inheritance in Flash 5 and Flash MX
http://www.quantumwave.com/flash/inheritance.html
http://www.quantumwave.com/flash/inheritance.html#mx

Demonstration of object inheritance in Flash 5 ActionScript:
http://www.quantumwave.com/flash/inheritanceExample.html

Virtual Movieclip Class (aka MovieClip Inheritance or MovieClip SubClass)
http://www.quantumwave.com/flash/vmc.html

Demonstration of static methods and properties in ActionScript
http://www.quantumwave.com/flash/static.html</description>
		<content:encoded><![CDATA[<p>Different ways of inheritance in Flash 5 and Flash MX<br />
<a href="http://www.quantumwave.com/flash/inheritance.html" rel="nofollow">http://www.quantumwave.com/flash/inheritance.html</a><br />
<a href="http://www.quantumwave.com/flash/inheritance.html#mx" rel="nofollow">http://www.quantumwave.com/flash/inheritance.html#mx</a></p>
<p>Demonstration of object inheritance in Flash 5 ActionScript:<br />
<a href="http://www.quantumwave.com/flash/inheritanceExample.html" rel="nofollow">http://www.quantumwave.com/flash/inheritanceExample.html</a></p>
<p>Virtual Movieclip Class (aka MovieClip Inheritance or MovieClip SubClass)<br />
<a href="http://www.quantumwave.com/flash/vmc.html" rel="nofollow">http://www.quantumwave.com/flash/vmc.html</a></p>
<p>Demonstration of static methods and properties in ActionScript<br />
<a href="http://www.quantumwave.com/flash/static.html" rel="nofollow">http://www.quantumwave.com/flash/static.html</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-469</link>
		<pubDate>Wed, 21 Feb 2007 22:56:05 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-469</guid>
					<description>As &lt;a rel="nofollow" href="http://www.senocular.com/" rel="nofollow"&gt;Senocular&lt;/a&gt; points out, this is going to be an almost 3 year old topic.

How to use Object.registerClass with 2.0 class
http://www.actionscript.org/forums/showthread.php3?t=37103&#038;page=2</description>
		<content:encoded><![CDATA[<p>As <a rel="nofollow" href="http://www.senocular.com/" rel="nofollow">Senocular</a> points out, this is going to be an almost 3 year old topic.</p>
<p>How to use Object.registerClass with 2.0 class<br />
<a href="http://www.actionscript.org/forums/showthread.php3?t=37103&#038;page=2" rel="nofollow">http://www.actionscript.org/forums/showthread.php3?t=37103&#038;page=2</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-457</link>
		<pubDate>Wed, 21 Feb 2007 17:41:52 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-457</guid>
					<description>Xml Dialect for Flash User Interfaces
http://www.simonwacker.com/blog/archives/000105.php

Multiple Inheritance
http://www.simonwacker.com/blog/archives/000007.php</description>
		<content:encoded><![CDATA[<p>Xml Dialect for Flash User Interfaces<br />
<a href="http://www.simonwacker.com/blog/archives/000105.php" rel="nofollow">http://www.simonwacker.com/blog/archives/000105.php</a></p>
<p>Multiple Inheritance<br />
<a href="http://www.simonwacker.com/blog/archives/000007.php" rel="nofollow">http://www.simonwacker.com/blog/archives/000007.php</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jgraup</title>
		<link>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-447</link>
		<pubDate>Wed, 21 Feb 2007 02:32:54 +0000</pubDate>
		<guid>http://www.justgooddesign.com/blog/dynamic-class-linkage-with-__proto__.htm#comment-447</guid>
					<description>ActionScript Object Duplication - var _t = new this.__proto__.constructor(this) ;
http://theolagendijk.wordpress.com/2006/09/04/actionscript-object-duplication/</description>
		<content:encoded><![CDATA[<p>ActionScript Object Duplication - var _t = new this.__proto__.constructor(this) ;<br />
<a href="http://theolagendijk.wordpress.com/2006/09/04/actionscript-object-duplication/" rel="nofollow">http://theolagendijk.wordpress.com/2006/09/04/actionscript-object-duplication/</a>
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
