<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
 <channel>
  <title>Eric的学习笔记</title>
  <link>http://bigsnail.blogbus.com</link>
  <description><![CDATA[主要记录RIA和AIR方面的一些技术文章]]></description>
  <generator> by blogbus.com </generator>
  <lastBuildDate>Thu, 01 Jan 1970 07:00:00 +0700</lastBuildDate>
  <image>
									<url>http://public.blogbus.com/profile/6/0/0/5146006/avatar_5146006_96.jpg</url>
									<title>Eric的学习笔记</title>
									<link>http://bigsnail.blogbus.com</link>
								</image>  <item>
   <title>设计模式--单件模式</title>
   <description><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt;"><span style="color: #800000;">单件模式</span></span></strong><strong style="mso-bidi-font-weight: normal;"><span style="mso-bidi-font-size: 10.5pt;" lang="EN-US">:</span></strong><span style="font-family: Verdana; mso-bidi-font-size: 10.5pt;" lang="EN-US"> </span><span style="font-family: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana; mso-bidi-font-size: 10.5pt;">保证一个类有且仅有一个实例，并提供一个供全局的访问方法。</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Verdana; mso-bidi-font-size: 10.5pt;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US">AS3</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">中类的构造函数不能</span><span lang="EN-US">private,</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">所以实现单件模式需要变通一下</span><span lang="EN-US">.</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">单件模式在</span><span lang="EN-US">as3</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">中的实现概括的说就是在</span><span lang="EN-US">class</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">内再建一个只有该</span><span lang="EN-US">class</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">自己内访问的空类作为</span><span lang="EN-US">new</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">该</span><span lang="EN-US">class</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">的入口参数，这样只有</span><span lang="EN-US">class</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">自己才能</span><span lang="EN-US">new</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">自己，任何外界都不能</span><span lang="EN-US">new</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">，其次通过</span><span lang="EN-US">getInstance</span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">返回一个静态的对象，作为全局唯一的。</span></p><!--sp--><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Fbigsnail.blogbus.com%2Flogs%2F43955807.html&title=%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F--%E5%8D%95%E4%BB%B6%E6%A8%A1%E5%BC%8F">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://bigsnail.blogbus.com/logs/43955807.html</link>
   <author>BigSnail</author>
   <pubDate>Tue, 11 Aug 2009 21:15:12 +0800</pubDate>
  </item>
  <item>
   <title>数据结构---插入排序</title>
   <description><![CDATA[<p><span style="background-color: #ffffff;"><span style="color: #800000;"><strong>插入排序</strong></span></span>:常用排序算法之一,比冒泡排序和选择排序要快点.</p><!--sp--><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Fbigsnail.blogbus.com%2Flogs%2F43955716.html&title=%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84---%E6%8F%92%E5%85%A5%E6%8E%92%E5%BA%8F">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://bigsnail.blogbus.com/logs/43955716.html</link>
   <author>BigSnail</author>
   <pubDate>Tue, 11 Aug 2009 21:12:24 +0800</pubDate>
  </item>
  <item>
   <title>数据结构---单链表</title>
   <description><![CDATA[<p><strong>链表</strong>:由节点组成,每个节点对象都保存下一个节点对象的引用.</p><!--sp--><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Fbigsnail.blogbus.com%2Flogs%2F43955587.html&title=%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84---%E5%8D%95%E9%93%BE%E8%A1%A8">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://bigsnail.blogbus.com/logs/43955587.html</link>
   <author>BigSnail</author>
   <pubDate>Tue, 11 Aug 2009 21:09:37 +0800</pubDate>
  </item>
  <item>
   <title>数据结构--队列</title>
   <description><![CDATA[<p>队列：与栈基本相同,但队列是FIFO,并且队列的头部下标不是固定的.</p><!--sp--><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Fbigsnail.blogbus.com%2Flogs%2F43955469.html&title=%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84--%E9%98%9F%E5%88%97">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://bigsnail.blogbus.com/logs/43955469.html</link>
   <author>BigSnail</author>
   <pubDate>Tue, 11 Aug 2009 21:06:55 +0800</pubDate>
  </item>
  <item>
   <title>数据结构---栈</title>
   <description><![CDATA[<p>栈:&nbsp; 先进后出,每次只能访问一个数据项,即最后插入的数据项.大部分微处理器都是基于这种结构.</p><!--sp--><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Fbigsnail.blogbus.com%2Flogs%2F43955227.html&title=%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84---%E6%A0%88">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://bigsnail.blogbus.com/logs/43955227.html</link>
   <author>BigSnail</author>
   <pubDate>Tue, 11 Aug 2009 21:00:46 +0800</pubDate>
  </item>
  <item>
   <title>设计模式 -- 策略模式</title>
   <description><![CDATA[<p><span style="background-color: #ffffff;"><strong>策略模式 ：</strong>定义了算法族，分别封装起来，让他们之间可以互相替换，此模式让算法的变化独立于使用算法的</span><span style="background-color: #ffffff;">客户。</span></p>
<p><strong>例子 ：</strong>一动作冒险游戏，里面有国王，骑士，妖怪等角色，他们都可以使用武器进行战斗，并且在游戏过程中可以换武器。游戏中的武器有很多种。</p><!--sp--><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Fbigsnail.blogbus.com%2Flogs%2F43954947.html&title=%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F+--+%E7%AD%96%E7%95%A5%E6%A8%A1%E5%BC%8F">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://bigsnail.blogbus.com/logs/43954947.html</link>
   <author>BigSnail</author>
   <pubDate>Tue, 11 Aug 2009 20:55:03 +0800</pubDate>
  </item>
  <item>
   <title>FLASH游戏--消方块</title>
   <description><![CDATA[<p>Toy游戏,只写了简单的逻辑.</p>
<p>
<object width="375" height="375" data="http://bigsnail.blogbus.com/files/12498995000.swf" type="application/x-shockwave-flash">
<param name="src" value="http://bigsnail.blogbus.com/files/12498995000.swf" />
</object>
<br /><br />&nbsp;<br /><br />&nbsp;<br /></p><!--sp--><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Fbigsnail.blogbus.com%2Flogs%2F43873682.html&title=FLASH%E6%B8%B8%E6%88%8F--%E6%B6%88%E6%96%B9%E5%9D%97">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://bigsnail.blogbus.com/logs/43873682.html</link>
   <author>BigSnail</author>
   <pubDate>Mon, 10 Aug 2009 18:16:46 +0800</pubDate>
  </item>
 </channel>
</rss>

