<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_David Fan's blog</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/25744/rss</id><updated>2011-03-31T15:44:41Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/25744/rss"/><entry><id>http://www.cnblogs.com/DavidFan/archive/2011/03/31/2001652.html</id><title type="text">转-flex自定义组件</title><summary type="text">原文：http://blog.sina.com.cn/s/blog_64902a300100jdyb.html这些是从flash开发者交流会上得来的，就放在这里与大家分享分享，也许当时很多人都没记下来，不过，我算是个有心人，嘿嘿。组件开发需重载的四个函数：1.createChildren();2.measure();3.updateDisplayList();4.commitProperties();createChildren()在自定义组件中主要是和addChild,rowChildren相关。measure()在自定义组件中主要是measureWidth,measureHeight相关，</summary><published>2011-03-31T15:45:00Z</published><updated>2011-03-31T15:45:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2011/03/31/2001652.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2011/03/31/2001652.html"/><content type="html">&lt;p&gt;原文：&lt;a href="http://blog.sina.com.cn/s/blog_64902a300100jdyb.html"&gt;http://blog.sina.com.cn/s/blog_64902a300100jdyb.html&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;这些是从flash开发者交流会上得来的，就放在这里与大家分享分享，也许当时很多人都没记下来，不过，我算是个有心人，嘿嘿。&lt;br /&gt;组件开发需重载的四个函数：&lt;br /&gt;1.createChildren();&lt;br /&gt;2.measure();&lt;br /&gt;3.updateDisplayList();&lt;br /&gt;4.commitProperties();&lt;br /&gt;&lt;br /&gt;createChildren()在自定义组件中主要是和addChild,rowChildren相关。&lt;br /&gt;&lt;br /&gt;measure()在自定义组件中主要是measureWidth,measureHeight相关，调用invalidateSize()函数，系统将自动调用measure()函数。&lt;br /&gt;&lt;br /&gt;(1)对于updateDisplayList()，使用setAutualSize()设置子组件大小&lt;br /&gt;(2)使用move()函数设置子组件位置。&lt;br /&gt;(3)使用graphics对象绘制任意可视元素。&lt;br /&gt;(4)如果需要手动更新组件视图。&lt;br /&gt;&lt;br /&gt;invalidateDisplayList()函数，系统将自动调用updateDisplayList()函数。&lt;br /&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/DavidFan/aggbug/2001652.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/DavidFan/archive/2011/03/31/2001652.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2011/03/26/1996321.html</id><title type="text">好长时间没有写Blog了</title><summary type="text">如题，由于这两年的工作关系，一直没有怎么写Blog， 这里都长草了！准备开始一系列Flash,Flex文章，一方面温习些基础知识，一方面总结一下这两年的工作经验。</summary><published>2011-03-26T07:13:00Z</published><updated>2011-03-26T07:13:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2011/03/26/1996321.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2011/03/26/1996321.html"/><content type="html">&lt;p&gt;如题，由于这两年的工作关系，一直没有怎么写Blog， 这里都长草了！&lt;img src="http://www.cnblogs.com/Emoticons/baimantou/105104147.gif"  alt="" /&gt;&lt;/p&gt;&lt;p&gt;准备开始一系列Flash,Flex文章，一方面温习些基础知识，一方面总结一下这两年的工作经验。 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/DavidFan/aggbug/1996321.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/DavidFan/archive/2011/03/26/1996321.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2009/12/18/1626899.html</id><title type="text">Must-Have Flex Development Tools Sans FlexBuilder</title><summary type="text">Must-Have Flex Development Tools Sans FlexBuilderList of 22 ActionScript 3.0 API&amp;#8217;s104 Free Opensource APIs, Libraries, and tools for the Flash Platform收藏备用。</summary><published>2009-12-18T02:12:00Z</published><updated>2009-12-18T02:12:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2009/12/18/1626899.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2009/12/18/1626899.html"/></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2008/09/23/1296918.html</id><title type="text">12法则&amp;&amp;10个心理效应</title><summary type="text">1 马太效应《新约马太福音》中有这样一个故事，一个国王远行前，交给3个仆人每人一锭银子，吩咐他们：&amp;#8220;你们去做生意 ，等我回来时，再来见我。&amp;#8221;国王回来时，第一个仆人说：&amp;#8220;主人，你交给我们的一锭银子，我已赚了10锭。&amp;#8221;于是国王奖励他10座城邑。第二个仆人报告说：&amp;#8220;主人，你给我的一锭银子，我已赚了5锭。&amp;#8221;于是国王例奖励了他5座城邑。...</summary><published>2008-09-23T07:31:00Z</published><updated>2008-09-23T07:31:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2008/09/23/1296918.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2008/09/23/1296918.html"/></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2008/08/27/1277672.html</id><title type="text">ExternalInterface在Flex Project中C#,C++通信使用上的不同</title><summary type="text">1.public static function addCallback(functionName:String, closure:Function):void2.ExternalInterface.addCallback("CallBack",TestFunction);3.&amp;lt;invoke name="CallBack" returntype=\"xml\"&amp;gt;&amp;lt;argument...</summary><published>2008-08-27T06:01:00Z</published><updated>2008-08-27T06:01:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2008/08/27/1277672.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2008/08/27/1277672.html"/></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2008/07/29/1255572.html</id><title type="text">Flex中的css</title><summary type="text">首先参考http://www.stevekwan.com/archives/2008/02/734之后你可能会很不开心.真不明白adobe在Flex里加了css却又什么也不支持,到底想干吗?其实Flex区别于网页元素来说是他所有的组件都是对象.且有继承关系.样式也是继承而来的.所以天生的实现了css的继承关系.比如你定义一个MYButton类继承自Button.那它就是拥有了Button的样式.如...</summary><published>2008-07-29T06:35:00Z</published><updated>2008-07-29T06:35:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2008/07/29/1255572.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2008/07/29/1255572.html"/></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2008/07/29/1255447.html</id><title type="text">AS3中的名称空间namespace</title><summary type="text">1.一般应用(访问名称空间下方法)use namespace mx_internal;var textArea:TextArea = TextArea();textArae.htmlText="&amp;lt;b&amp;gt;test&amp;lt;/b&amp;gt;";var itf:IUITextField=textArae.getTextField();2.不同名称空间相同的函数签名package{import fla...</summary><published>2008-07-29T03:54:00Z</published><updated>2008-07-29T03:54:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2008/07/29/1255447.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2008/07/29/1255447.html"/></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2008/05/22/1204787.html</id><title type="text">使用较早版本的Flex SDK编译Flex程序</title><summary type="text">FlexBuiler3 Realse后出现了一个问题就是Panel(TitleWindow也同样的问题)在使用borderSkin样式来自定义皮肤时内容上移.参见http://bugs.adobe.com/jira/browse/SDK-14806原来的beta3SDK是没有这个问题的,但是它已经过期了,想要用它来编译必须调整系统时间.在查阅了资料后,大致是这样解决了这个问题.1.用winrar打...</summary><published>2008-05-22T05:44:00Z</published><updated>2008-05-22T05:44:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2008/05/22/1204787.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2008/05/22/1204787.html"/></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2007/12/26/1014881.html</id><title type="text">我敬你 迪克牛仔</title><summary type="text">我敬你--迪克牛仔未来没来现在还在去疯去狂真心无处可买有人靠近有人走开这人生啊机遇象一片海也许伤怀也许是坏能陪谁一程都值得喝采我敬你一份真爱不准回敬我感慨有缘无缘都别怪往事没人能更改我敬你一份自在爱面前别象小孩有时相聚分开未必是伤害我敬你一份真爱不要回敬我等待不管谁去谁来爱依然是爱</summary><published>2007-12-25T16:25:00Z</published><updated>2007-12-25T16:25:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2007/12/26/1014881.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2007/12/26/1014881.html"/></entry><entry><id>http://www.cnblogs.com/DavidFan/archive/2007/09/20/899989.html</id><title type="text">别哭我最爱的人-水木年华</title><summary type="text"/><published>2007-09-20T06:18:00Z</published><updated>2007-09-20T06:18:00Z</updated><author><name>David Fan</name><uri>http://www.cnblogs.com/DavidFan/</uri></author><link rel="alternate" href="http://www.cnblogs.com/DavidFan/archive/2007/09/20/899989.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/DavidFan/archive/2007/09/20/899989.html"/></entry></feed>
