<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for A Hill of Beans</title>
	<atom:link href="http://thillerson.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://thillerson.wordpress.com</link>
	<description>It doesn't amount to much, but it sure is fun.</description>
	<lastBuildDate>Fri, 23 Oct 2009 20:12:27 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by Martin Zach</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-952</link>
		<dc:creator>Martin Zach</dc:creator>
		<pubDate>Fri, 23 Oct 2009 20:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-952</guid>
		<description>Hi,

I haven&#039;t tested it, but this seems to be the solution, see:
http://www.justskins.com/forums/dynamic-access-to-as-properties-reflection-16508.html
Cheers!
Martin Zach</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I haven&#8217;t tested it, but this seems to be the solution, see:<br />
<a href="http://www.justskins.com/forums/dynamic-access-to-as-properties-reflection-16508.html" rel="nofollow">http://www.justskins.com/forums/dynamic-access-to-as-properties-reflection-16508.html</a><br />
Cheers!<br />
Martin Zach</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by Martin Zach</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-951</link>
		<dc:creator>Martin Zach</dc:creator>
		<pubDate>Fri, 23 Oct 2009 20:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-951</guid>
		<description>Hi Jasper,

did you try this:

public class MyClass
	{
		import ...

		public var myInt:int=new int;
		
		public function MyClass() // Same name as Class!!!
		{
			//super(); // calls a constructur of super class if any
			this.myInt=myInt;
			init();
		}
		
		public function init():void{ 
                 }

You can call the Constructor like this:
MyClass(500);</description>
		<content:encoded><![CDATA[<p>Hi Jasper,</p>
<p>did you try this:</p>
<p>public class MyClass<br />
	{<br />
		import &#8230;</p>
<p>		public var myInt:int=new int;</p>
<p>		public function MyClass() // Same name as Class!!!<br />
		{<br />
			//super(); // calls a constructur of super class if any<br />
			this.myInt=myInt;<br />
			init();<br />
		}</p>
<p>		public function init():void{<br />
                 }</p>
<p>You can call the Constructor like this:<br />
MyClass(500);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by Martin Zach</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-950</link>
		<dc:creator>Martin Zach</dc:creator>
		<pubDate>Fri, 23 Oct 2009 19:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-950</guid>
		<description>Hi,

similar sutuation with a property:
I know only the propertyName as a String.
Is there a way to access the property at runtime?

Cheers!

Martin Zach</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>similar sutuation with a property:<br />
I know only the propertyName as a String.<br />
Is there a way to access the property at runtime?</p>
<p>Cheers!</p>
<p>Martin Zach</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by Martin Zach</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-949</link>
		<dc:creator>Martin Zach</dc:creator>
		<pubDate>Fri, 23 Oct 2009 19:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-949</guid>
		<description>Hi,

first of all thanks for this very good site!

To get the QualifiedClassName try this: 

import flash.utils.getQualifiedClassName;
 
getQualifiedClassName(dg.columns[0].itemEditor.generator)

if the item editor was a textArea this is what would be returned - mx.controls::TextArea

Cheers!

Martin Zach
P.S: i got the solution from David, see 
http://forums.adobe.com/message/2336185#2336185</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>first of all thanks for this very good site!</p>
<p>To get the QualifiedClassName try this: </p>
<p>import flash.utils.getQualifiedClassName;</p>
<p>getQualifiedClassName(dg.columns[0].itemEditor.generator)</p>
<p>if the item editor was a textArea this is what would be returned &#8211; mx.controls::TextArea</p>
<p>Cheers!</p>
<p>Martin Zach<br />
P.S: i got the solution from David, see<br />
<a href="http://forums.adobe.com/message/2336185#2336185" rel="nofollow">http://forums.adobe.com/message/2336185#2336185</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by Jasper</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-948</link>
		<dc:creator>Jasper</dc:creator>
		<pubDate>Mon, 12 Oct 2009 09:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-948</guid>
		<description>i didnt find a way to call the constructor of a class.
i use someting like this as workaround::


public var _arg0
public var _arg1
constructor( arg0 = null, arg1 = null ){
    if(arg0) this.arg0 = arg0
    if(arg1) this.arg1 = arg1
    if(argsComplete()) instantiate()
}

public function instattiate(){
   // instantiate
}

public function set arg0(v:*){
   this._arg0 = v;
    if(argsComplete()) instantiate()
}

public function set arg1(v:*){
   this._arg1 = v;
    if(argsComplete()) instantiate()
}

public function argsComplete():Boolean{
   if(_arg0 &amp;&amp; _arg1) return true els return false
}</description>
		<content:encoded><![CDATA[<p>i didnt find a way to call the constructor of a class.<br />
i use someting like this as workaround::</p>
<p>public var _arg0<br />
public var _arg1<br />
constructor( arg0 = null, arg1 = null ){<br />
    if(arg0) this.arg0 = arg0<br />
    if(arg1) this.arg1 = arg1<br />
    if(argsComplete()) instantiate()<br />
}</p>
<p>public function instattiate(){<br />
   // instantiate<br />
}</p>
<p>public function set arg0(v:*){<br />
   this._arg0 = v;<br />
    if(argsComplete()) instantiate()<br />
}</p>
<p>public function set arg1(v:*){<br />
   this._arg1 = v;<br />
    if(argsComplete()) instantiate()<br />
}</p>
<p>public function argsComplete():Boolean{<br />
   if(_arg0 &amp;&amp; _arg1) return true els return false<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by manu</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-947</link>
		<dc:creator>manu</dc:creator>
		<pubDate>Mon, 05 Oct 2009 06:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-947</guid>
		<description>Can anyone tell me how to create reference also dynamically. in my application iam generating the controls from an xml definiton dynamically</description>
		<content:encoded><![CDATA[<p>Can anyone tell me how to create reference also dynamically. in my application iam generating the controls from an xml definiton dynamically</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by David Parks</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-938</link>
		<dc:creator>David Parks</dc:creator>
		<pubDate>Thu, 09 Jul 2009 12:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-938</guid>
		<description>One additional thing that would help complete this excellent article:

How do you also pass a variable list of parameters to the constructor of such a dynamic object?

Case in question: I want to instantiate a set of objects defined by an XML received from the server &amp; add them to my scene. Some objects have no arguments for the constructor, but some do. The XML can easily pass in the required arguments as needed. But how do I dynamically pass these arguments to the constructor (as in an array). Such as can done with the myFunction.call(this, argsArray) method?

Something like this is what I need:
var mc=new (getDefinitionByName(str) as Class).call(thisNewThing, argsArray)

Any ideas?</description>
		<content:encoded><![CDATA[<p>One additional thing that would help complete this excellent article:</p>
<p>How do you also pass a variable list of parameters to the constructor of such a dynamic object?</p>
<p>Case in question: I want to instantiate a set of objects defined by an XML received from the server &amp; add them to my scene. Some objects have no arguments for the constructor, but some do. The XML can easily pass in the required arguments as needed. But how do I dynamically pass these arguments to the constructor (as in an array). Such as can done with the myFunction.call(this, argsArray) method?</p>
<p>Something like this is what I need:<br />
var mc=new (getDefinitionByName(str) as Class).call(thisNewThing, argsArray)</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Flex Show Part 2 by Дин</title>
		<link>http://thillerson.wordpress.com/2007/06/07/the-flex-show-part-2/#comment-936</link>
		<dc:creator>Дин</dc:creator>
		<pubDate>Fri, 22 May 2009 07:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/06/07/the-flex-show-part-2/#comment-936</guid>
		<description>Отличная статья Спасибо огромное</description>
		<content:encoded><![CDATA[<p>Отличная статья Спасибо огромное</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by Tony</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-934</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sun, 19 Apr 2009 22:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-934</guid>
		<description>@neopromo - Ya nye panyemayu Ruskiye yezik</description>
		<content:encoded><![CDATA[<p>@neopromo &#8211; Ya nye panyemayu Ruskiye yezik</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Runtime class instantiation in Actionscript 3.0 by neopromo</title>
		<link>http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-933</link>
		<dc:creator>neopromo</dc:creator>
		<pubDate>Sun, 19 Apr 2009 22:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/#comment-933</guid>
		<description>Кто когда спать ложится? Я раньше часу двух ночи не ложусь.</description>
		<content:encoded><![CDATA[<p>Кто когда спать ложится? Я раньше часу двух ночи не ложусь.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
