<?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: getDefinitionByName</title>
	<atom:link href="http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<pubDate>Wed, 07 Jan 2009 19:31:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan</title>
		<link>http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/comment-page-1/#comment-768</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 06 Dec 2008 15:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/#comment-768</guid>
		<description>If I do this:

	var man:Class = getDefinitionByName("man1" + dir) as Class;
	var obj = new man() as DisplayObject;
	object.removeChildAt(0);
	object.addChild(obj);

I get this error:

	ReferenceError: Error #1065: Variable man1UR is not defined.

When, as you can see above, it is defined...?</description>
		<content:encoded><![CDATA[<p>If I do this:</p>
<p>	var man:Class = getDefinitionByName(&#8221;man1&#8243; + dir) as Class;<br />
	var obj = new man() as DisplayObject;<br />
	object.removeChildAt(0);<br />
	object.addChild(obj);</p>
<p>I get this error:</p>
<p>	ReferenceError: Error #1065: Variable man1UR is not defined.</p>
<p>When, as you can see above, it is defined&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/comment-page-1/#comment-767</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sat, 06 Dec 2008 15:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/#comment-767</guid>
		<description>Hi,

I have something similar to this, all though not the same, I have no experience with SWC files.

I have defined 3 MovieClips:

	var man1DR:MovieClip = new MovieClip();
	var man1UL:MovieClip = new MovieClip();
	var man1UR:MovieClip = new MovieClip();

I want to add one of these to a movieClip as a child, depending on a variable 'dir'.

"man1" + dir gives me the name of one of those 3 movieClips, but if I do:

object.addChild("man1"+ dir);

I get an error as it is a string and not the actual movieClip. Do you know how I fix this??</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have something similar to this, all though not the same, I have no experience with SWC files.</p>
<p>I have defined 3 MovieClips:</p>
<p>	var man1DR:MovieClip = new MovieClip();<br />
	var man1UL:MovieClip = new MovieClip();<br />
	var man1UR:MovieClip = new MovieClip();</p>
<p>I want to add one of these to a movieClip as a child, depending on a variable &#8216;dir&#8217;.</p>
<p>&#8220;man1&#8243; + dir gives me the name of one of those 3 movieClips, but if I do:</p>
<p>object.addChild(&#8221;man1&#8243;+ dir);</p>
<p>I get an error as it is a string and not the actual movieClip. Do you know how I fix this??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iestyn lloyd</title>
		<link>http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/comment-page-1/#comment-520</link>
		<dc:creator>iestyn lloyd</dc:creator>
		<pubDate>Wed, 15 Oct 2008 13:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/#comment-520</guid>
		<description>Hey, thanks for this, I was wondering WTF was going on for a while :)

FYI, I got a relative path working. If you're using FlashDevelop (3.0.0 Beta9), it needs to be relative to your .as3proj file.
This worked:  -include-libraries dev\swc\videos.swc</description>
		<content:encoded><![CDATA[<p>Hey, thanks for this, I was wondering WTF was going on for a while <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>FYI, I got a relative path working. If you&#8217;re using FlashDevelop (3.0.0 Beta9), it needs to be relative to your .as3proj file.<br />
This worked:  -include-libraries dev\swc\videos.swc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdgdg</title>
		<link>http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/comment-page-1/#comment-394</link>
		<dc:creator>sdgdg</dc:creator>
		<pubDate>Mon, 23 Jun 2008 10:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/01/25/getdefinitionbyname/#comment-394</guid>
		<description>&lt;a href="http://www.laizjj.cn" rel="nofollow"&gt;张家界旅游&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://www.laizjj.cn" rel="nofollow">张家界旅游</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.173 seconds -->
