<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>{finalbug} &#187; Flex</title>
	<atom:link href="http://finalbug.org/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://finalbug.org</link>
	<description>Keep it simple &#38; stupid</description>
	<lastBuildDate>Sun, 05 Feb 2012 13:27:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>开始用FDT</title>
		<link>http://finalbug.org/2011/01/startusingfdt/</link>
		<comments>http://finalbug.org/2011/01/startusingfdt/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 08:47:17 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=2121</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://finalbug.org/wp-content/uploads/2011/01/fdt4m1.png"><img class="alignleft size-full wp-image-2122" title="fdt4m" src="http://finalbug.org/wp-content/uploads/2011/01/fdt4m1.png" alt="" width="140" height="212" /></a></p>
<p>一直没能在linux上找到好的IDE用来编写Flex/AS。Adobe的Flash Builder从07年出了个flex3的alpha版本之后就再也没有更新，FDT感觉挺好但是太贵，买不起。</p>
<p>后来听说FDT为Open Source开发者免费提供FDT 4 Max License，因为一直有开源自己的fb-aslib，虽然是个非常龊的项目，但是也厚着脸皮发信请求一个免费的license。过了半个多月，没想到真收到免费的OS license。以后可以在linux上用IDE写ActionScript，挺好！</p>
<p>用了几天，感觉和用Flash Builder差别还是挺大的。</p>
<p>首先，FDT的format很好用，和以前的Flash的Editor一样的快捷键，而且自定义的内容很多；</p>
<p>其次，对SWC和项目的引用和Flash Builder不一样，包括linked sources也不一样，但是这样更直接明了，项目组织比FB更清晰，比较符合我的习惯；</p>
<p>但是文件模板没有Flash Builder好用，不过代码模板还是挺好的，只是我很少用；</p>
<p>然后，我在公司的机器上也装上了FDT，但是明显感觉Windows版的没有Linux的稳定，总是报内存错误然后崩掉，我家的机器只有２G内存，公司的是４G，怎么还是内存不足呢？也许是windows版的eclipse的问题？</p>
<p>最后，代码提示没有Flash Builder来得便捷，但是用起来也算很顺手。</p>
<p>其他的优点，就慢慢再体会了，感谢FDT提供如此棒的免费IDE。</p>
<p>FDT site: <a href="http://www.fdt.powerflasher.com/">http://www.fdt.powerflasher.com/</a></p>
<p><strong>Thanks FDT so much to provide such awesome Flex/AS IDE.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2011/01/startusingfdt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用Ant编译Flex</title>
		<link>http://finalbug.org/2010/12/%e7%94%a8ant%e7%bc%96%e8%af%91flex/</link>
		<comments>http://finalbug.org/2010/12/%e7%94%a8ant%e7%bc%96%e8%af%91flex/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 07:01:34 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Ant]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=1805</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>有空看了看用ant来编译flex的配置。通过AXDT的build.xml文件，自己整理了一下，生成了一个比较完整的ant build文件。</p>
<p>结构清晰简洁明了，以备后用。</p>
<pre class="brush: xml; gutter: true">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project name="myBuild" default="main"&gt;

    &lt;property name="SRC_DIR" location="src" /&gt;
    &lt;property name="OUT_DIR" location="deploy" /&gt;
    &lt;property name="DOC_DIR" location="asdoc" /&gt;
    &lt;property name="TARGET_NAME" value="targetName" /&gt;
    &lt;property name="TARGET_PATH" location="src/Main.as" /&gt;
    &lt;property name="WRAP_NAME" value="index.html" /&gt;

    &lt;!-- 修改这里的depends，加入需要的target --&gt;
    &lt;target name="main" depends="" /&gt;

    &lt;!-- flex.frameworks的设置是eclipse里面设置的，这里可以用任何其他SDK路径代替 --&gt;
    &lt;target name="compile"&gt;
        &lt;mxmlc output="${OUT_DIR}/${TARGET_NAME}.swf" file="${TARGET_PATH}"&gt;
            &lt;load-config filename="${flex.frameworks}/flex-config.xml" /&gt;
        &lt;/mxmlc&gt;
    &lt;/target&gt;

    &lt;target name="wrapper"&gt;
        &lt;html-wrapper swf="${TARGET_NAME}" output="${OUT_DIR}"
            file="${WRAP_NAME}" width="100%" height="100%" history="true"
            express-install="true" version-detection="true" /&gt;
    &lt;/target&gt;

    &lt;target name="asdoc"&gt;
        &lt;asdoc output="${DOC_DIR}"&gt;
            &lt;load-config filename="${flex.frameworks}/flex-config.xml" /&gt;
            &lt;doc-sources path-element="${SRC_DIR}" /&gt;
        &lt;/asdoc&gt;
    &lt;/target&gt;

    &lt;!-- compc编译让我搞了很久。原来compc是不支持include-sources的。所以这里只能用include-classes了 --&gt;
    &lt;target name="library" depends="clean-library "&gt;
        &lt;fileset id="sources" dir="${SRC_DIR}"&gt;
            &lt;include name="**/*.as" /&gt;
        &lt;/fileset&gt;
        &lt;pathconvert property="classes" pathsep=" " refid="sources"&gt;
            &lt;chainedmapper&gt;
    &lt;!-- 在windows下面，要将/换成 --&gt;
                &lt;globmapper from="${SRC_DIR}/*" to="*" /&gt;
                &lt;mapper type="package" from="*.as" to="*" /&gt;
            &lt;/chainedmapper&gt;
        &lt;/pathconvert&gt;
        &lt;compc output="${OUT_DIR}/${TARGET_NAME}.swc" include-classes="${classes}" &gt;
            &lt;source-path path-element="${SRC_DIR}" /&gt;
            &lt;load-config filename="${flex.frameworks}/flex-config.xml" /&gt;
            &lt;include-file name="${SRC_DIR}/resources/img.png" path="${SRC_DIR}/resources/img.png" /&gt;
        &lt;/compc&gt;
    &lt;/target&gt;

    &lt;target name="clean" depends="clean-library,clean-compile,clean-asdoc,clean-wrapper" /&gt;

    &lt;target name="clean-compile"&gt;
        &lt;delete file="${OUT_DIR}/${TARGET_NAME}.swf" /&gt;
    &lt;/target&gt;

    &lt;target name="clean-wrapper"&gt;
        &lt;delete dir="${OUT_DIR}/history" /&gt;
        &lt;delete&gt;
            &lt;fileset dir="${OUT_DIR}"&gt;
                &lt;include name="${WRAP_NAME}" /&gt;
                &lt;include name="swfobject.js" /&gt;
                &lt;include name="playerProductInstall.swf" /&gt;
            &lt;/fileset&gt;
        &lt;/delete&gt;
    &lt;/target&gt;

    &lt;target name="clean-asdoc"&gt;
        &lt;delete dir="${DOC_DIR}" /&gt;
    &lt;/target&gt;

    &lt;target name="clean-library"&gt;
        &lt;delete file="${OUT_DIR}/${TARGET_NAME}.swc" /&gt;
    &lt;/target&gt;

&lt;/project&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2010/12/%e7%94%a8ant%e7%bc%96%e8%af%91flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>数字图像处理作业-空间滤波</title>
		<link>http://finalbug.org/2010/12/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e7%a9%ba%e9%97%b4%e6%bb%a4%e6%b3%a2/</link>
		<comments>http://finalbug.org/2010/12/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e7%a9%ba%e9%97%b4%e6%bb%a4%e6%b3%a2/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 11:01:04 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[CSMOE]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[数字图像处理]]></category>
		<category><![CDATA[算法]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=1734</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<blockquote><p>3. 空间滤波<br />
(a)噪点生成器。1. 找到（或开发）一段程序能在一个图像中加入高斯噪点,并且必须能够指出噪点的均值和方差。2.找到（或开发）一段程序能在一个图像中加入黑白相间的（脉冲式）噪点,并且必须能指出这两种噪点中每一种的出<br />
现概率。<br />
(b)写一段程序实现空间均值滤波，把你的滤波器应用到在(a)中含噪点的图像上。你可以把你的空间遮罩的大小固定设成3X3，但是系数要是可变的并作为你程序的输入。<br />
(c)修改你在(b)中生成的程序以实现一个3X3 的中值滤波。比较用均值滤波和中值滤波过滤后的图像的不同之处。</p></blockquote>
<p>结果图：</p>
<p><a href="http://finalbug.org/wp-content/uploads/2010/12/DIP31.jpg"><img class="aligncenter size-large wp-image-1735" title="DIP3" src="http://finalbug.org/wp-content/uploads/2010/12/DIP31.jpg" alt="" width="560" height="109" /></a></p>
<p>先把高斯噪声的伪随机数生成方法记下来。其他的以后有空再写。</p>
<pre class="brush: actionscript3; gutter: true">/**
* 用雅可比变换生成一个呈高斯分布的伪随机数。
*
* @param mu 平均值μ
* @param sigma 标准差σ^2
* @return 伪随机数。
*/
private function getGaussianRandom(mu:Number = 0, sigma:Number = 1):Number
{
	var r1:Number = Math.random();
	var r2:Number = Math.random();
	var rs:Number = Math.sqrt(-2 * Math.log(r1)) * Math.cos(2 * Math.PI * r2 ) * sigma + mu;
	return rs;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2010/12/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e7%a9%ba%e9%97%b4%e6%bb%a4%e6%b3%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>数字图像处理作业-几何转换</title>
		<link>http://finalbug.org/2010/11/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e5%87%a0%e4%bd%95%e8%bd%ac%e6%8d%a2/</link>
		<comments>http://finalbug.org/2010/11/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e5%87%a0%e4%bd%95%e8%bd%ac%e6%8d%a2/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 11:30:16 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[CSMOE]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[数字图像处理]]></category>
		<category><![CDATA[算法]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=1726</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<blockquote><p>写一段几何转换程序可以按一定数值进行旋转,转换和缩放图像,分别使用用最邻近点算法和双线性差值算法。</p></blockquote>
<p>开始的时候google了很多关于最近邻点算法（nearest）和双线性差值算法（biliear）的内容，发现挺麻烦的，而且推算下来的计算量很大，觉得无从下手。后来看了课程的讲义，发现老师的要求似乎是很简单的（实际上是我搜索错了算法 O_O）。对于最近邻算法，转换之后的点对应到原图位置后，距离该位置最近的一个点的灰度，即为转换后的点的灰度。而双线性差值算法要稍微多算一点，如下图：</p>
<p><a href="http://finalbug.org/wp-content/uploads/2010/11/dip2-11.jpg"><img src="http://finalbug.org/wp-content/uploads/2010/11/dip2-11.jpg" alt="" title="dip2-1" width="560" height="412" class="aligncenter size-large wp-image-1727" /></a></p>
<p>将对应的位置附近的四个点的灰度统一起来做计算即可。公式也很简单，假设目标位置的左下，左上，右下，右上点的灰度分别为f00，f01，f10，f11，x值是目标位置到f00点的x距离，y值是目标位置到f00点的y距离，fxy是转换后的点的灰度值，公式为：</p>
<blockquote><p>fxy = (f10 &#8211; f00) * x + (f01 &#8211; f00) * y + (f11 + f00 &#8211; f01 &#8211; f10) * x * y + f00</p></blockquote>
<p>结果如下图。</p>
<p><a href="http://finalbug.org/wp-content/uploads/2010/11/dip21.jpg"><img src="http://finalbug.org/wp-content/uploads/2010/11/dip21.jpg" alt="" title="dip2" width="560" height="371" class="aligncenter size-large wp-image-1721" /></a></p>
<p>其实为了偷懒，我没有计算rotate值，因为没有想出一个好的方法来将转换后的坐标mapping到原图的位置，干脆就使用Flex中的rotate属性做了一个切换，老师应该看不出来的吧。XD</p>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2010/11/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e5%87%a0%e4%bd%95%e8%bd%ac%e6%8d%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>数字图像处理作业-直方图</title>
		<link>http://finalbug.org/2010/11/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e7%9b%b4%e6%96%b9%e5%9b%be/</link>
		<comments>http://finalbug.org/2010/11/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e7%9b%b4%e6%96%b9%e5%9b%be/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 08:34:14 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[CSMOE]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[数字图像处理]]></category>
		<category><![CDATA[算法]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=1717</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>还有整整一个月的时间就要交《数字图像处理》的作业了，一直有任何的头绪。本来是打算有了现成的程序之后自己就写点论文就好了，但是看来大家都没有太大的兴致来写。于是横下一条心，干脆自己来做吧！虽然不专业，对位图处理还是有点经验的。开始向用freemat或者opencv之类的东西来做，但是毕竟不是日常使用的东西，不熟悉，看了看作业的要求，似乎只要是能转换成位图矩阵就能使用，所以还是用Flex做吧，发布成AIR，但愿到时候老师知道我的是什么东西。。</p>
<p>这东西只能断断续续的做，还是将自己做的东西记录下来，免得忘掉了。</p>
<p>首要的问题，在AS中似乎没有直接获取灰度值的方法，因此我用的是将RGB值分解之后取平均值。顺便记录一下分解RGB的简单算法：</p>
<pre class="brush: actionscript3; gutter: true">var red:uint = color &gt;&gt; 16 &amp; 0xFF;
 var green:uint = color &gt;&gt; 8 &amp; 0xFF;
 var blue:uint = color &amp; 0xFF;</pre>
<p>如果不将RGB的值转换成一个灰度值，可以分别对三个值进行计算，得到三个直方图，让后用同样的算法对三个值进行计算，之后再组成一个RGB值，可以作为整个图形的计算。</p>
<blockquote><p>第一题，直方图均衡化</p>
<ul>
<li>写一段程序计算一个图像的直方图</li>
<li>实现直方图均衡化</li>
<li>你的程序必须大体上能允许所有的灰阶图像作为输入</li>
</ul>
<p>至少，在你的报告中需要包括原始图像和它的直方图，一张直方图均衡化的图，转换函数，改进后的图像和他的直方图。</p></blockquote>
<p>实现效果：</p>
<p><a href="http://finalbug.org/wp-content/uploads/2010/11/dip11.jpg"><img class="aligncenter size-large wp-image-1722" title="dip1" src="http://finalbug.org/wp-content/uploads/2010/11/dip11.jpg" alt="" width="560" height="134" /></a></p>
<p>按照我自己的理解，直方图的算法如下。未必正确，仅供参考。</p>
<pre class="brush: actionscript3; gutter: true">// 以下代码仅描述算法，不能直接运行。
// 第一步，获取该位图从0-255的每个灰度值的点的个数。
for(i = 1 ; i &lt; 255 ; i++)
{
	for(j = 1 ; j &lt; 255 ; j++)
	{
		// grays数组的index为灰度值，值为该灰度值的点的个数
		grays[getGrayAt(i, j)]++;
	}
}

// 第二步，获得归一化之后的直方图
for(pi = 0 ; pi &lt; grays.length ; pi++)
{
	p[pi] = grayList[pi] / (imgWidth * imgHeight); // p数组中保存的是每个灰度的百分比
}
// 第三步，累计的归一化直方图
for(ci = 0 ; ci &lt; p.length ; ci++)
{
	c[ci] = 0;
	for(cj = 0 ; cj &lt; ci ; cj++)
	{
		c[ci] += p[cj]; // 数组c中保存的是归一化之后的直方图
	}
}
//
// 最后，转换成新的位图
for(ti = 1 ; ti &lt; 255 ; ti++)
{
	for(tj = 1 ; tj &lt; 255 ; tj++)
	{
		t[ti][tj] = c[getGray(originaImage.getGrayAt(ti, tj))] * (maxGray - minGray) + minGray;
	}
}
// maxGray是原图中最高的灰度值，minGray是最低的。
// 数组t即为新的图的像素矩阵。</pre>
<p>补充几个AS的方法：</p>
<pre class="brush: actionscript3; gutter: true">
public static function splitColor(color:uint):Array
{
	var red:uint = color &gt;&gt; 16 &amp; 0xFF;
	var green:uint = color &gt;&gt; 8 &amp; 0xFF;
	var blue:uint = color &amp; 0xFF;
	return [red, green, blue];
}

public static function getGray(color:uint):uint
{
	var RGB:Array = splitColor(color);
	return uint((RGB[0] + RGB[1] + RGB[2]) / 3);
}

public static function getColor(gray:uint):uint
{
	return gray * 65536 + gray * 256 + gray;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2010/11/%e6%95%b0%e5%ad%97%e5%9b%be%e5%83%8f%e5%a4%84%e7%90%86%e4%bd%9c%e4%b8%9a-%e7%9b%b4%e6%96%b9%e5%9b%be/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>一点速记</title>
		<link>http://finalbug.org/2010/09/%e4%b8%80%e7%82%b9%e9%80%9f%e8%ae%b0/</link>
		<comments>http://finalbug.org/2010/09/%e4%b8%80%e7%82%b9%e9%80%9f%e8%ae%b0/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 02:48:20 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=1307</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>php的问题，遇到：</p>
<p>[code language="c"]Cannot modify header information - headers already sent by[/code]</p>
<p>最简单的解决方法是将php.ini中设置</p>
<p>[code language="c"]set output_buffering = On[/code]</p>
<p>这种方法开启了所有php程序的输出缓存，这样做可能影响php执行效率，这取决于服务器的性能和代码的复杂度。但是至少我现在运行良好。</p>
<p><strong>关于flex中的国际化。</strong></p>
<ol>
<li>在任何地方放置语言根目录，然后按照语言创建子目录，比如英文是en_US，简体中文是zh_CN，其他的看手册；</li>
<li>每个语言包的文件都是xxx.properties，xxx是文件名，扩展名都不变；</li>
<li>将语言根目录添加到项目的sources Path中，如果本来就在，就不用改了；</li>
<li>编译的时候设置-locale zh_CN，多个语言用空格隔开；</li>
<li>如果在SDK的frameworkslocale目录下没有你使用的语言，比如4.0之前的SDK就没有zh_CN，将4.0之后的同目录下的文件直接copy过去使用即可；</li>
<li>在flex代码中使用resourceManager.localeChain来定义默认的语言和优先级；</li>
<li>使用的方法一般如下：
<ol>
<li>先要绑定：[ResourceBundle("xxx")]</li>
<li><strong>resourceManager.getString(bundle, key);</strong>其中bundle是绑定的文件名称，比如前面的xxx，key是文件中对应的每个键值对的key；</li>
<li><strong>@Resource(bundle=&#8217;xxx&#8217;, key=&#8217;&#8230;.&#8217;)</strong>这是用在flex中的，用法都差不多。</li>
</ol>
</li>
</ol>
<p>差不多就这样吧。如果是flex项目用起来似乎还不错，但是不能实时切换。有待改善。</p>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2010/09/%e4%b8%80%e7%82%b9%e9%80%9f%e8%ae%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在archlinux上运行FlashBuilder4</title>
		<link>http://finalbug.org/2010/07/%e5%9c%a8archlinux%e4%b8%8a%e8%bf%90%e8%a1%8cflashbuilder4/</link>
		<comments>http://finalbug.org/2010/07/%e5%9c%a8archlinux%e4%b8%8a%e8%bf%90%e8%a1%8cflashbuilder4/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 16:12:34 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=1068</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>感谢<a href="http://code.google.com/p/fb4linux/">fb4linux</a>项目，在<a href="http://code.google.com/p/fb4linux/wiki/HowToInstall">这篇文章</a>的帮助下，成功的在archlinux上安装和运行基于eclipse的flashbuilder4。</p>
<p><a href="http://finalbug.org/wp-content/uploads/2010/07/flex1.png"><img src="http://finalbug.org/wp-content/uploads/2010/07/flex1-300x187.png" alt="" title="flex" width="300" height="187" class="alignnone size-medium wp-image-1069" /></a></p>
<p>整个安装过程非常简单，清晰。fb4linux的作者应该也是国人，相比之下真是自惭形秽。</p>
<p>不过似乎没有找到flashplayer10 debug plus for linux x86_64，debug的时候无法连接player。目前只能使用自己写的调试工具来调试了。</p>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2010/07/%e5%9c%a8archlinux%e4%b8%8a%e8%bf%90%e8%a1%8cflashbuilder4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAS, comes back!</title>
		<link>http://finalbug.org/2008/11/fas-come-back/</link>
		<comments>http://finalbug.org/2008/11/fas-come-back/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 12:23:12 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.finalbug.org/?p=446</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>almost 3 years age, i started my first open source project. at that time, i wasnt clear what i real what to do on RIA, i simply want to write some ActionScript code into a library that i can use it directly during developing RIA projects. i call that library “TAS”, means “Tang&#8217;s ActionScript”.</p>
<p><span id="more-446"></span></p>
<p>i wrote lots of codes, most of which are UI components. in fact, i didnot understant what is “UI component”, so i named them all as “Tools” in TAS.</p>
<p>anyhow, “TAS” coms back and rename to “FAS”, means “FinalBug Framework for ActionScript”. “Tang” is changed to “FinalBug” which is my nickname and the name of this site. a “Framework” is also added, means i will do more on my ActionScript lib.</p>
<p>nowadays, project FAS is hosted in <a href="http://code.google.com/">google code</a> whit the name <a href="http://code.google.com/p/finalbug-fas">finalbug-fas</a> (because “fas” is used by other project). anyone can feel free to download the archived .swc files or check out sources via SVN.</p>
<p>for more infos, plz check <a href="http://www.finalbug.org/?page_id=447">FAS page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2008/11/fas-come-back/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>quick note</title>
		<link>http://finalbug.org/2008/09/quick-note/</link>
		<comments>http://finalbug.org/2008/09/quick-note/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 01:33:26 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.finalbug.com/?p=295</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>problem:</p>
<p>The livedocs suggest that every UIComponent has automatically set event listeners for keyUp (and keyDown) events. So, I expected that it&#8217;s enough to override this method to make<br />
some action on key-click. But that isn&#8217;t the case.. Instead &#8211; nothing happens.</p>
<p><span id="more-295"></span></p>
<p>resolvent:</p>
<p>The UIComponent constructor has the logic</p>
<p><code><br />
         if (this is IFocusManagerComponent)<br />
         {<br />
             addEventListener(FocusEvent.FOCUS_IN, focusInHandler);<br />
             addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);<br />
             addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);<br />
             addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);<br />
         }<br />
 </code><br />
In order to receive keyboard events, your component must implement IFocusManagerComponent:</p>
<p>“The base implementations of this interface are in the UIComponent class, but UIComponent does not implement the full IFocusManagerComponent interface  since some UIComponents are not intended to receive focus. Therefore, to make a UIComponent-derived component be a valid focusable component, you simply add “implements IFocusManagerComponent” to the class definition.”</p>
<p>If you&#8217;re writing an MXML component, you declare that it implements an interface with the tag attribute</p>
<p><code><br />
     implements="mx.managers.IFocusManagerComponent"<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2008/09/quick-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>上帝是文盲</title>
		<link>http://finalbug.org/2008/07/%e4%b8%8a%e5%b8%9d%e6%98%af%e6%96%87%e7%9b%b2/</link>
		<comments>http://finalbug.org/2008/07/%e4%b8%8a%e5%b8%9d%e6%98%af%e6%96%87%e7%9b%b2/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 01:41:56 +0000</pubDate>
		<dc:creator>Tang Bin</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://finalbug.cn/?p=174</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>很多次告诉别人我是计算机专业的时候，都会有人很有兴趣的问会不会黑客技术，会不会破解，会不会木马，会不会写病毒。。。其实，我很想说：只有拥有智慧的人类才会将泥土放入火中烤制成瓷器，而打破一个瓷器连一头驴都会，你觉得我是做人好还是做头驴好？</p>
<p>上面的内容不是今天的主题。</p>
<p>51job的效率还是很高的，自从我去年离开topcmm、上51job更新了一下个人信息以后，基本上每个月都能收到2、3次猎头或者HR的邮件或电话，当然工作都是AS方面的。其中不乏一些大公司，但是公司越大态度越不好，尤其是腾讯。打电话给我的HR一腔老子天下第一的语调，很脑残。对付流氓的最好方法就是比他更流氓。我向来认为我是可以很流氓的，于是我对HR说：呃，腾讯啊。。。不咋样的，不去。对方估计噎住了，好半天说了一句“哦”就“byebye”了。那一刻，我觉得自己很流氓，当然我认为还是比范跑跑好很多，毕竟我只是流氓但是我不无耻。</p>
<p>上面的内容也不是今天的主题。</p>
<p>昨天接到了某公司HR的电话，可以说是我接到的HR电话中态度对好的，很让我吃惊。公司的内容是做Flash 3D社区，内容很不错，我觉得很有吸引力。其实说起来，就工作内容和从该公司网站上看到的信息，应该算是所有“可跳槽”选择中最好的一个了——如果我有跳槽打算的话。</p>
<p>这个也不是今天的主题。</p>
<p>一直以来我不看好Flash 3D的，因为AVM的效率一直都是写AS的人员心头的大石头。这是很难解决的问题，但是Flash Player10却引入了硬件加速和3D。最近一个月的时间，我接触和尝试了很多在Flash中进行3D开发东西，从Maya到Flash 3D软件再到AS 3D引擎，其中也不乏很多优秀的东西，但是运算效率和开发成本是很难估算和控制的东西，没有十足的把握还真不敢贸然在Flash中使用3D。上面那家做Flash 3D社区的公司，看起来很好很强大，不知道会发展得怎么样，拭目以待。</p>
<p>常说技术人员到35岁都得转管理，一直以来我不赞同这个观点但是我的行为却一直都在略微的向这个方向倾斜。在未来的技术中，3D固然是趋势之一，但是数据模型和数据交换才是支持这个华丽前台的核心。如何建立最优化的数据模型？如何让交互的数据量减到最小、速度最快？我相信这些才是占领未来信息技术市场的关键，我认为这个关键的根源是“标准”，只有建立了我们自主产权的数据标准、语言规范和通讯协议，才能来将来的信息技术世界占有关键的席位。而这个标准的根源，我认为是自主产权的运算芯片和微指令集。但是如果我现在想转入针对龙芯的底层开发是很困难，也是事倍功半的事情，因此在应用层开发中如何自主开发通讯协议和交换技术，才是我可以去考虑的问题。这就是我的Return to the real world，这是我的真实的世界。</p>
<p>上面也不是主题。今天的主题是：</p>
<h2>国内航线燃油附加费上调 800公里以上增加50元</h2>
<p>真TMD操蛋！</p>
]]></content:encoded>
			<wfw:commentRss>http://finalbug.org/2008/07/%e4%b8%8a%e5%b8%9d%e6%98%af%e6%96%87%e7%9b%b2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

