<?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>《AS3应用程序模块化开发与ApplicationDomain》的评论</title>
	<atom:link href="http://eidiot.net/2007/06/03/applicationdomain/feed/" rel="self" type="application/rss+xml" />
	<link>http://eidiot.net/2007/06/03/applicationdomain/</link>
	<description>eidiot&#039;s blog. My flapdoodles.</description>
	<lastBuildDate>Mon, 06 Feb 2012 23:19:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：G0c0</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-23738</link>
		<dc:creator>G0c0</dc:creator>
		<pubDate>Fri, 10 Jun 2011 03:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-23738</guid>
		<description>class的大量使用。。。。多人协作的项目给代码书写和维护带来灾难，在flex中也不能通过ctrl+鼠标左键快速定位类。。。try{ trace(domain.getDefinition(&quot;org.core.Test&quot;))}catch(e:Error){trace(e) }用异常扑捉的方式可以顺利通过编译，如果能解决代码的编写和维护问题这个as纯项目的模块分类方案绝对是完美的</description>
		<content:encoded><![CDATA[<p>class的大量使用。。。。多人协作的项目给代码书写和维护带来灾难，在flex中也不能通过ctrl+鼠标左键快速定位类。。。try{ trace(domain.getDefinition(“org.core.Test”))}catch(e:Error){trace(e) }用异常扑捉的方式可以顺利通过编译，如果能解决代码的编写和维护问题这个as纯项目的模块分类方案绝对是完美的</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：yunlongw</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-23724</link>
		<dc:creator>yunlongw</dc:creator>
		<pubDate>Tue, 22 Feb 2011 05:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-23724</guid>
		<description>教程写得不错 ，佩服</description>
		<content:encoded><![CDATA[<p>教程写得不错 ，佩服</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：leef</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21968</link>
		<dc:creator>leef</dc:creator>
		<pubDate>Wed, 17 Mar 2010 01:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21968</guid>
		<description>咋说呢，感谢！
挺受用的。</description>
		<content:encoded><![CDATA[<p>咋说呢，感谢！<br />
挺受用的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：yoyo</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21950</link>
		<dc:creator>yoyo</dc:creator>
		<pubDate>Thu, 19 Nov 2009 10:17:39 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21950</guid>
		<description>两个单词都是缩写的话我觉得应该都用大写，比如：ID
所以用户界面也应该写成UI而不是Ui [doubt]</description>
		<content:encoded><![CDATA[<p>两个单词都是缩写的话我觉得应该都用大写，比如：ID<br />
所以用户界面也应该写成UI而不是Ui <img src='http://eidiot.net/wp-content/plugins/smilies-themer/JBIG/doubt.gif' alt='[doubt]' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：flashk</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21883</link>
		<dc:creator>flashk</dc:creator>
		<pubDate>Thu, 26 Mar 2009 02:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21883</guid>
		<description>很不错的文章，我们已经在实际社区项目中证明，这种开发方式还是有很多好处的。</description>
		<content:encoded><![CDATA[<p>很不错的文章，我们已经在实际社区项目中证明，这种开发方式还是有很多好处的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：别为此文</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21846</link>
		<dc:creator>别为此文</dc:creator>
		<pubDate>Sat, 08 Nov 2008 08:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21846</guid>
		<description>文章介绍的不错,但源代码太乱了,简直是灾难,设计的非常乱</description>
		<content:encoded><![CDATA[<p>文章介绍的不错,但源代码太乱了,简直是灾难,设计的非常乱</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：苦恼男孩</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21728</link>
		<dc:creator>苦恼男孩</dc:creator>
		<pubDate>Tue, 29 Jan 2008 03:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21728</guid>
		<description>我把嵌入字体当成共享库加载进主场景，加载外部的SWF文件可以获取字体类定义但就是没有办法注册该嵌入字体</description>
		<content:encoded><![CDATA[<p>我把嵌入字体当成共享库加载进主场景，加载外部的SWF文件可以获取字体类定义但就是没有办法注册该嵌入字体</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：zman</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21689</link>
		<dc:creator>zman</dc:creator>
		<pubDate>Sat, 29 Dec 2007 12:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21689</guid>
		<description>好文，收藏啦，模块化开发肯定是大型Ria程序所必须的。</description>
		<content:encoded><![CDATA[<p>好文，收藏啦，模块化开发肯定是大型Ria程序所必须的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：oncebet</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21646</link>
		<dc:creator>oncebet</dc:creator>
		<pubDate>Sat, 03 Nov 2007 03:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21646</guid>
		<description>或者把逻辑都写在main里面，比如：
var myTest : Class = this.getClass(”net.eidiot.appDomainDemo.Libaray.EBG”);
var temp=new myTest();
temp.stage.addEventListener(MouseEvent.MOUSE_DOWN,downHandler)
addChild(temp);
private function downHanler(){
trace(&quot;temp mouse down&quot;);
dosometing();
}</description>
		<content:encoded><![CDATA[<p>或者把逻辑都写在main里面，比如：<br />
var myTest : Class = this.getClass(”net.eidiot.appDomainDemo.Libaray.EBG”);<br />
var temp=new myTest();<br />
temp.stage.addEventListener(MouseEvent.MOUSE_DOWN,downHandler)<br />
addChild(temp);<br />
private function downHanler(){<br />
trace(“temp mouse down”);<br />
dosometing();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：oncebet</title>
		<link>http://eidiot.net/2007/06/03/applicationdomain/comment-page-1/#comment-21645</link>
		<dc:creator>oncebet</dc:creator>
		<pubDate>Sat, 03 Nov 2007 02:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://eidiot.net/?p=445#comment-21645</guid>
		<description>如果库资源要发送一些事件呢？好像不行。
例如 mian.swf ：  
var myTest : Class = this.getClass(&quot;net.eidiot.appDomainDemo.Libaray.EBG&quot;);
var temp=new myTest();
addChild(temp);

如果这个net.eidiot.appDomainDemo.Libaray.EBG里面要发送事件就不行了。就会出现空间访问错误。
比如这样
package net.eidiot.appDomainDemo.ui
{
	import flash.display.Sprite;
	import flash.text.TextField;
	/**
	 * 模型背景
	 * 
	 * @author	eidiot (http://eidiot.net)
	 * @date	070601
	 * @version	1.0.070601
	 */
	public class EBG extends Sprite
	{
		public var titleTxt : TextField;
		
		/**
		 * 构造函数
		 * 
		 * @param p_title	标题
		 */		
		public function EBG(p_title : String = &quot;模型&quot;)
		{
			super();
			this.titleTxt.text = p_title;
			this.x = this.y = 10;
                                               this.stage.addEventListener(MouseEvent.MOUSE_DOWN,downHandler)
		}
private function downHandler(e:MouseEvent):void{
  dispatchEvent(new Event(&quot;testEvent&quot;));
}

	}
}

如果不能发送事件，那么lib里面的元件执行了一些操作后，我怎么获取里面的数据呢。</description>
		<content:encoded><![CDATA[<p>如果库资源要发送一些事件呢？好像不行。<br />
例如 mian.swf ：<br />
var myTest : Class = this.getClass(“net.eidiot.appDomainDemo.Libaray.EBG”);<br />
var temp=new myTest();<br />
addChild(temp);</p>
<p>如果这个net.eidiot.appDomainDemo.Libaray.EBG里面要发送事件就不行了。就会出现空间访问错误。<br />
比如这样<br />
package net.eidiot.appDomainDemo.ui<br />
{<br />
	import flash.display.Sprite;<br />
	import flash.text.TextField;<br />
	/**<br />
	 * 模型背景<br />
	 *<br />
	 * @author	eidiot (<a href="http://eidiot.net" rel="nofollow" class="liinternal">http://eidiot.net</a>)<br />
	 * @date	070601<br />
	 * @version	1.0.070601<br />
	 */<br />
	public class EBG extends Sprite<br />
	{<br />
		public var titleTxt : TextField;</p>
<p>		/**<br />
		 * 构造函数<br />
		 *<br />
		 * @param p_title	标题<br />
		 */<br />
		public function EBG(p_title : String = “模型”)<br />
		{<br />
			super();<br />
			this.titleTxt.text = p_title;<br />
			this.x = this.y = 10;<br />
                                               this.stage.addEventListener(MouseEvent.MOUSE_DOWN,downHandler)<br />
		}<br />
private function downHandler(e:MouseEvent):void{<br />
  dispatchEvent(new Event(“testEvent”));<br />
}</p>
<p>	}<br />
}</p>
<p>如果不能发送事件，那么lib里面的元件执行了一些操作后，我怎么获取里面的数据呢。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

