<?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: ClassFinder class</title>
	<atom:link href="http://dynamicflash.com/2005/03/class-finder/feed/" rel="self" type="application/rss+xml" />
	<link>http://dynamicflash.com/2005/03/class-finder/</link>
	<description>Confessions of a serial code abuser</description>
	<lastBuildDate>Wed, 16 Dec 2009 20:40:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Crear Din&#225;micamente Instancias de Clase en AS3 &#124; ¿y por qué no?</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-105724</link>
		<dc:creator>Crear Din&#225;micamente Instancias de Clase en AS3 &#124; ¿y por qué no?</dc:creator>
		<pubDate>Sat, 13 Jun 2009 00:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-105724</guid>
		<description>&lt;p&gt;[...] Nota: En AS2, se puede hacer lo mismo así: [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Nota: En AS2, se puede hacer lo mismo así: [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Actionscript Classes &#187; ClassFinder</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-12236</link>
		<dc:creator>Actionscript Classes &#187; ClassFinder</dc:creator>
		<pubDate>Sat, 16 Dec 2006 05:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-12236</guid>
		<description>&lt;p&gt;[...] http://dynamicflash.com/2005/03/class-finder/ [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://dynamicflash.com/2005/03/class-finder/" rel="nofollow">http://dynamicflash.com/2005/03/class-finder/</a> [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-9454</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Sun, 12 Nov 2006 19:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-9454</guid>
		<description>&lt;p&gt;Great find.&lt;/p&gt;

&lt;p&gt;Inspired by Spring (http://www.springframework.org/) in Java development, I implemented an similar (using eval())  because it was easy, so the implementation is xml configrable, allowing debugging versions of the code, dropped in without recompiling.&lt;/p&gt;

&lt;p&gt;One plus about your approach is eval() is not supported in Flash9, so your method is probably better.&lt;/p&gt;

&lt;p&gt;I use the static reference links to setup a code library that is created by MTASC and pulled in via a skin file on the fly.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great find.</p>

<p>Inspired by Spring (<a href="http://www.springframework.org/" rel="nofollow">http://www.springframework.org/</a>) in Java development, I implemented an similar (using eval())  because it was easy, so the implementation is xml configrable, allowing debugging versions of the code, dropped in without recompiling.</p>

<p>One plus about your approach is eval() is not supported in Flash9, so your method is probably better.</p>

<p>I use the static reference links to setup a code library that is created by MTASC and pulled in via a skin file on the fly.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-1484</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 29 Mar 2006 12:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-1484</guid>
		<description>&lt;p&gt;&quot;Though eval() would indeed work ... it just feels a little dirty&quot;&lt;/p&gt;

&lt;p&gt;I know what you mean, but why make work for yourself? As long as code strikes a good balance between readability and efficiency it shoud be a go-er...&lt;/p&gt;

&lt;p&gt;Great site by the way.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;Though eval() would indeed work &#8230; it just feels a little dirty&#8221;</p>

<p>I know what you mean, but why make work for yourself? As long as code strikes a good balance between readability and efficiency it shoud be a go-er&#8230;</p>

<p>Great site by the way.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-291</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 14 Mar 2005 13:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-291</guid>
		<description>&lt;p&gt;Bob: Absolutely! In fact, we&#039;re going to be doing just that for our application just as soon as we ship the new version. Now if only I could find an efficient (both byte- and processor-wise) component set with a DataGrid replacement, I&#039;d be laughing.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Bob: Absolutely! In fact, we&#8217;re going to be doing just that for our application just as soon as we ship the new version. Now if only I could find an efficient (both byte- and processor-wise) component set with a DataGrid replacement, I&#8217;d be laughing.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-290</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Mon, 14 Mar 2005 10:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-290</guid>
		<description>&lt;p&gt;Right. If file size would be an issue you could perhaps load the dependancy classes in the main swf through a seperate swf, specified by the XML.&lt;/p&gt;

&lt;p&gt;That would allow for dynamic updating of the main swf, and a smaller file size as well :).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Right. If file size would be an issue you could perhaps load the dependancy classes in the main swf through a seperate swf, specified by the XML.</p>

<p>That would allow for dynamic updating of the main swf, and a smaller file size as well <img src='http://dynamicflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-288</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 11 Mar 2005 13:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-288</guid>
		<description>&lt;p&gt;@Bob: I&#039;m not too worried about file size here as the classes I&#039;m choosing between are very lightweight. The reason I need runtime instantiation is that I don&#039;t know which of my classes I need to instantiate until I load the class name from the configuration XML file.&lt;/p&gt;

&lt;p&gt;@Simon: Though eval() would indeed work, I try to avoid using it wherever possible. I can&#039;t really explain why, it just feels a little dirty ;) Having said that (and without checking )I guess using eval() would make ClassFinder more efficient, but unless you&#039;re instantiating thousands of objects this way it wouldn&#039;t really be noticable.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Bob: I&#8217;m not too worried about file size here as the classes I&#8217;m choosing between are very lightweight. The reason I need runtime instantiation is that I don&#8217;t know which of my classes I need to instantiate until I load the class name from the configuration XML file.</p>

<p>@Simon: Though eval() would indeed work, I try to avoid using it wherever possible. I can&#8217;t really explain why, it just feels a little dirty <img src='http://dynamicflash.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Having said that (and without checking )I guess using eval() would make ClassFinder more efficient, but unless you&#8217;re instantiating thousands of objects this way it wouldn&#8217;t really be noticable.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Wacker</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-287</link>
		<dc:creator>Simon Wacker</dc:creator>
		<pubDate>Fri, 11 Mar 2005 12:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-287</guid>
		<description>&lt;p&gt;Why aren&#039;t you just using eval?
var myClass:Function = Function(eval(&quot;fullyQualifiedClassName&quot;));
I mean, you do not do any extra checking whether a class with the given name does even exist and that like.
You are also not checking whether the passed-in class name is null or undefined.
The as2lib does also offer that functionality together with a lot more. Take a look at the Reflection API (org.as2lib.env.reflect). Note that the current version is rather heavy weight. We are going to release an improved and lighter reflection api (together with as2lib 0.1 final) in about 1 month.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Why aren&#8217;t you just using eval?
var myClass:Function = Function(eval(&#8221;fullyQualifiedClassName&#8221;));
I mean, you do not do any extra checking whether a class with the given name does even exist and that like.
You are also not checking whether the passed-in class name is null or undefined.
The as2lib does also offer that functionality together with a lot more. Take a look at the Reflection API (org.as2lib.env.reflect). Note that the current version is rather heavy weight. We are going to release an improved and lighter reflection api (together with as2lib 0.1 final) in about 1 month.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Donderwinkel</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-286</link>
		<dc:creator>Bob Donderwinkel</dc:creator>
		<pubDate>Fri, 11 Mar 2005 12:26:45 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-286</guid>
		<description>&lt;p&gt;Using dependancy links to classes also increases the swf filesize for each class included. So what&#039;s your aim exactly with runtime instantiating the classes with xml, unless you know already which classes you are going to use?&lt;/p&gt;

&lt;p&gt;It would mean you have to include each class as a dependancy in the swf manually in any case, negating the runtime instantiating benefit perhaps. And if you would use a basic class making dependancy links to all classes you could possibly need, the filesize could get bigger then needed since you perhaps wont use all the classes.&lt;/p&gt;

&lt;p&gt;Nice work though. I&#039;m guessing your ClassFinder is more streamlined then mx.utils.ClassFinder :).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Using dependancy links to classes also increases the swf filesize for each class included. So what&#8217;s your aim exactly with runtime instantiating the classes with xml, unless you know already which classes you are going to use?</p>

<p>It would mean you have to include each class as a dependancy in the swf manually in any case, negating the runtime instantiating benefit perhaps. And if you would use a basic class making dependancy links to all classes you could possibly need, the filesize could get bigger then needed since you perhaps wont use all the classes.</p>

<p>Nice work though. I&#8217;m guessing your ClassFinder is more streamlined then mx.utils.ClassFinder <img src='http://dynamicflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2005/03/class-finder/comment-page-1/#comment-285</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 11 Mar 2005 09:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/03/packagefinder-class/#comment-285</guid>
		<description>&lt;p&gt;Thanks Richard. I&#039;ll have a look at this later.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Richard. I&#8217;ll have a look at this later.</p>]]></content:encoded>
	</item>
</channel>
</rss>
