<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[RIAidea.com]]></title>
<link>http://www.RIAidea.com/</link>
<description><![CDATA[var RIA={Integrate Flash/Flex/AJAX/Silverlight/etc. with Design};RIA.idea();]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[flashlizi@gmail.com(Flashlizi)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>RIAidea.com</title> 
	<url>http://www.RIAidea.com/images/logos.gif</url> 
	<link>http://www.RIAidea.com/</link> 
	<description>RIAidea.com</description> 
</image>

			<item>
			<link>http://www.RIAidea.com/default.asp?id=46</link>
			<title><![CDATA[AS3 Component: RichTextField]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flash CS3/AS3]]></category>
			<pubDate>Wed,25 Jun 2008 13:35:40 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=46</guid>	
		<description><![CDATA[Just a very simple demo with some bugs, welcome any feedback (bug o&#114; suggestion).<br/><br/>Demo Up&#100;ate:06-27<br/>like MSN o&#114; QQ, you can input any content with smileys and send to the output window.<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.RIAidea.com/images/flash.gif" alt="" style="margin:0px 2px -3px 0px" border="0"/>Flash动画</div><div class="UBBContent"><a id="temp69100_href" href="http://www.RIAidea.com/javascript:MediaShow('swf','temp69100','attachments/month_0806/42008627115226.swf','500','440')"><img name="temp69100_img" src="http://www.RIAidea.com/images/mm_snd.gif" style="margin:0px 3px -2px 0px" border="0" alt=""/><span id="temp69100_text">在线播放</span></a><div id="temp69100"></div></div></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=45</link>
			<title><![CDATA[用FlashDevelop开发兼容Flash和Flex的纯AS库SWC组件]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flex3]]></category>
			<pubDate>Thu,22 May 2008 17:52:47 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=45</guid>	
		<description><![CDATA[1、下载<a target="_blank" href="http://www.cyberoptix.org/code/ExportSWC.zip">ExportSWC</a>插件，解压到FD的Plugins目录，重启FD，在导航栏上会出现Export SWC的图标。<br/>2、新建一个AS3的Default Project，在项目文件夹下会出现bin和src两个文件夹，删除src目录下Main.as。<br/>3、打开project的properties面板，在classpaths里添加你想编译的as类库的目录。<br/>4、在compiler options面板的Additional compiler options项里输入如下compc编译参数：<br/>-namespace <a href="http://schemas.riaidea.com/as3lib/" target="_blank">http://schemas.riaidea.com/as3lib/</a>&nbsp;&nbsp;manifest.xml -include-namespaces <a href="http://schemas.riaidea.com/as3lib/" target="_blank">http://schemas.riaidea.com/as3lib/</a> -compute-digest=false <br/>其中namespace和include-namespaces指定编译类库的命名空间，在这里你可以修改为你想要的命名空间。manifest.xml是你的as类库清单，它的具体写法请参看<a target="_blank" href="http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_31.html">这里</a>。<br/>5、点击Export SWC的按钮，即会在bin目录下生成一个swc文件，至此大功告成。]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=44</link>
			<title><![CDATA[Official Flash Player 10(Astro) Documentation]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flash CS3/AS3]]></category>
			<pubDate>Thu,22 May 2008 11:41:09 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=44</guid>	
		<description><![CDATA[Download: <a target="_blank" href="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_as3langref_052008.zip">Official Flash Player 10 Documentation</a><br/>Extended read:<br/><a target="_blank" href="http://www.senocular.com/flash/tutorials/flash10drawingapi/">Flash Player 10 Drawing API</a>]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=43</link>
			<title><![CDATA[Google&#39;s Javascript Library and Doctype]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Javascript]]></category>
			<pubDate>Thu,15 May 2008 11:10:30 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=43</guid>	
		<description><![CDATA[对于web developer而言，google的技术绝对具有吸引力。今天google发布了一个叫<strong><a target="_blank" href="http://code.google.com/p/doctype/">goog</a></strong>的javascript库，而且还发起了一个叫<strong><a target="_blank" href="http://code.google.com/doctype">Doctype</a></strong>的项目，goog也是其中的一部分。此项目旨在为开发者开发web应用提供一个百科全书式的参考。内容包括：web安全文章，Jvascript DOM控制，CSS技巧，DOM/HTML/CSS参考等。而“By web developers, for web developers”的理念，允许更多的开发者参与到这个项目中来，不断完善和发展。]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=42</link>
			<title><![CDATA[WebORB:整合Flash/Flex与服务端的通讯平台]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flex3]]></category>
			<pubDate>Mon,28 Apr 2008 17:25:18 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=42</guid>	
		<description><![CDATA[<strong><a target="_blank" href="http://www.themidnightcoders.com">WebORB</a></strong>是一个免费的整合Flash/Flex与服务端(.NET/Java/Ruby/PHP)的通讯平台，它对AMF0，AMF3，RTMP，XML都有很好的支持。特别是.NET平台，推荐使用WebORB。]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=41</link>
			<title><![CDATA[让timer事件不延迟第一次调度]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flash CS3/AS3]]></category>
			<pubDate>Wed,23 Apr 2008 15:25:49 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=41</guid>	
		<description><![CDATA[一般启动Timer对象创建计时器后，都要经过Timer.delay的延迟后才会第一次调度timer事件。不过有些时候，我们想不经过delay就第一次调度timer事件，因此我们可以扩展Timer类来实现：<br/><textarea cols="60" rows="10" name="code_9783" class="actionscript">
package {

&#160;&#160;&#160;&#160;import flash.utils.Timer;
&#160;&#160;&#160;&#160;import flash.events.TimerEvent;

&#160;&#160;&#160;&#160;public class MyTimer extends Timer {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;private var startDelay:Boolean;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public function MyTimer(delay:Number, repeatCount:int = 0, startDelay:Boolean = true) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.startDelay = startDelay;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;super(delay, repeatCount);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public override function start():void {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if (!startDelay) dispatchEvent(new TimerEvent(TimerEvent.TIMER));
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;super.start();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;}
}
</textArea><script type="text/javascript">if(!dp.sh.Brushes.actionscript){document.write('<scr'+'ipt type="text/javascript" src="highlighter/js/actionscript.js"></sc'+'ript>');}</script><script type="text/javascript">dp.SyntaxHighlighter.HighlightAll("code_9783",null,false);</script><br/>使用方法：<br/><textarea cols="60" rows="10" name="code_9404" class="actionscript">
//传入startDelay为false即不延迟调度timer事件
var timer:MyTimer = new MyTimer(1000, 5, false);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();
</textArea><script type="text/javascript">if(!dp.sh.Brushes.actionscript){document.write('<scr'+'ipt type="text/javascript" src="highlighter/js/actionscript.js"></sc'+'ript>');}</script><script type="text/javascript">dp.SyntaxHighlighter.HighlightAll("code_9404",null,false);</script><br/><br/>需要注意的是，不延迟第一次调度timer事件不会计入到计时器的总运行次数repeatCount的。即调度完第一次timer事件后，currentCount仍为0。]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=40</link>
			<title><![CDATA[Flex SDK coding conventions and best practices]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flex3]]></category>
			<pubDate>Wed,16 Apr 2008 09:58:09 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=40</guid>	
		<description><![CDATA[Adobe Open Source上发布的Flex SDK编程规范与实践。内容包括命名、编程惯用法、文件组织管理、代码格式、项目文档ASDoc等一系列的规范。致力于Flex/Flash开发的朋友都值得一看，这有助于你进行效率更高，可读性更好的开发。<br/><br/>URL: <a href="http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions" target="_blank">http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions</a><br/><br/>再推荐一篇关于FMS3的文章：<a target="_blank" href="http://www.adobe.com/devnet/flashmediaserver/articles/dynamic_stream_switching.html">Dynamic stream switching with Flash Media Server 3</a>]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=39</link>
			<title><![CDATA[PHPQuery: A Simple AS3 Warper of AMFPHP]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flex3]]></category>
			<pubDate>Tue,25 Mar 2008 17:46:08 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=39</guid>	
		<description><![CDATA[一个简单的amfphp封装，简化了amfphp的使用。<br/>最新更新：增加getServices方法，返回所有可用的services方法集合的数组。需要在amfphp/services目录下增加ServiceUtils.php文件。PHPQuery和ServiceUtils在附件中均有下载。<br/>使用示例：<br/><textarea cols="60" rows="10" name="code_2232" class="actionscript">
var gateway:String = &#34;<a href="http://localhost/amfphp/gateway.php" target="_blank">http://localhost/amfphp/gateway.php</a>&#34;;
PHPQuery.connect(gateway);
PHPQuery.getServices(onServices);
function onServices(result:Array):void {
&#160;&#160;&#160;&#160;for each(var method:* in result) trace(method);
}
var params:String = &#34;www.riaidea.com&#34;;
PHPQuery.call(&#34;HelloWorld.say&#34;, onResult, onFault, params);
function onResult(result:Object):void {
&#160;&#160;&#160;&#160;trace(String(result));
}
function onFault(fault:Object):void {
&#160;&#160;&#160;&#160;trace(String(fault.description));
}
</textArea><script type="text/javascript">if(!dp.sh.Brushes.actionscript){document.write('<scr'+'ipt type="text/javascript" src="highlighter/js/actionscript.js"></sc'+'ript>');}</script><script type="text/javascript">dp.SyntaxHighlighter.HighlightAll("code_2232",null,false);</script><br/>PHPQuery源码：<br/><textarea cols="60" rows="10" name="code_201" class="actionscript">
package {&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;import flash.net.NetConnection;
&#160;&#160;&#160;&#160;import flash.net.Responder;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;public class PHPQuery {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;private static var _gateway:String;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;private static var netConnection:NetConnection;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;//connect to specified amfphp gateway
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public static function connect(gateway:String):void {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if (!netConnection) netConnection = new NetConnection();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;_gateway = gateway;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;netConnection.connect(gateway);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;//call a php method.
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public static function call(command:String, onResult:Function, onFault:Function = null, ...args):void {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var responder:Responder = new Responder(onResult, onFault);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var params:Array = [command, responder].concat(args);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;netConnection.call.apply(null, params);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;//get all services and theirs methods on amfphp
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public static function getServices(onResult:Function, onFault:Function = null):void {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;PHPQuery.call(&#34;ServiceUtils.getServices&#34;, function(result:Object) { onResult.call(null, listServices(result)); } , null);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;//list all services&#39;s methods
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;private static function listServices(result:Object):Array {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var out:Array = [];
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for (var i:int = 0; i &lt; result.length; i++) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var re:Object = result[i];
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if (re.children) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var child:Array = listServices(re.children);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;out = out.concat(child);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}else {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for(var m:String in re.methods) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var method:String = &#34;&#34;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if (re.data) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;method += re.data.replace( /\\/ , &#34;.&#34;);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;method += re.label + &#34;.&#34; + m;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;out.push(method);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return out;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;//get the amfphp gateway
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public static function get gateway():String {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return _gateway;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;}
}
</textArea><script type="text/javascript">if(!dp.sh.Brushes.actionscript){document.write('<scr'+'ipt type="text/javascript" src="highlighter/js/actionscript.js"></sc'+'ript>');}</script><script type="text/javascript">dp.SyntaxHighlighter.HighlightAll("code_201",null,false);</script><br/><img src="http://www.RIAidea.com/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://www.RIAidea.com/attachments/month_0803/52008328163126.rar" target="_blank"><strong>点击下载PHPQuery和ServiceUtils文件</strong></a>]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=38</link>
			<title><![CDATA[为你的ActionScript项目创建API文档]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flex3]]></category>
			<pubDate>Wed,19 Mar 2008 18:09:16 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=38</guid>	
		<description><![CDATA[作为一个developer，写项目的API文档是非常重要的一件事情，flash developer也不例外。ASDoc能让我们快速创建ActionScript项目的API文档。<br/><br/>下面以一个实际的示例来说明如何创建API文档：<br/><br/>1)打开Adobe Flex 3 SDK Command Prompt。<br/>2)用cd命令进入ActionScript项目的目录，如：cd D:\flashlizi\asdoc。<br/>3)输入ASDoc命令：<br/>asdoc -source-path . -window-title &#34;ASDoc演示示例类&#34; -package riaidea.asdoc &#34;A Example of Using ASDoc&#34; -doc-classes riaidea.utils.zip.ASDocExample<br/>这是一个基本的asdoc命令。其中参数source-path表示as源文件目录，如果在当面目录则用点“.”来表示。window-title表示帮助文档的窗口标题，即浏览器窗口标题。package参数用来描述一个包，如这里描述包riaidea.asdoc为&#34;A Example of Using ASDoc”。doc-classes用来指明需要生成API文档的类，如果指定的类中还引用了其他自定义类，那这些类也会生成API文档。<br/>更详细的asdoc命令使用可以查看这里：<a target="_blank" href="http://livedocs.adobe.com/flex/3/html/index.html?content=asdoc_9.html">http://livedocs.adobe.com/flex/3/html/index.html?content=asdoc_9.html</a><br/>4)执行完毕后，在asdoc目录下会生成了一个asdoc-output目录，里面就是API文档。一般的，我们生成的API文档无需按26个字母分类，因此我们可以把里面的all-index-A.html到all-index-Z.html删除，并删除title-bar.html中的Index链接，这样的API文档就精简多了。<br/><br/>下面是本例中的类riaidea.utils.zip.ASDocExample的源码：<br/><textarea cols="60" rows="10" name="code_7097" class="actionscript">
package riaidea.asdoc{
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;import flash.display.Sprite;
&#160;&#160;&#160;&#160;import flash.events.Event;
&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160;* 当创建一个ASDocExample实例的时候调度init事件。
&#160;&#160;&#160;&#160;* @eventType mx.events.FlexEvent.BUTTON_DOWN
&#160;&#160;&#160;&#160;*/
&#160;&#160;&#160;&#160;[Event(name=&#34;init&#34;, type=&#34;flash.events.Event&#34;)]
&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160; * ASDoc演示类。此例演示了如何写注释才能创建一个基本的AS项目的API文档。
&#160;&#160;&#160;&#160; * @example
&#160;&#160;&#160;&#160; * &lt;listing version=&#34;3.0&#34;&gt;
&#160;&#160;&#160;&#160; * var eg:ASDocExample=new ASDocExample();
&#160;&#160;&#160;&#160; * eg.print(&#34;ASDoc演示类&#34;);
&#160;&#160;&#160;&#160; * eg.test(&#34;flashlizi&#34;);
&#160;&#160;&#160;&#160; * &lt;/listing&gt;
&#160;&#160;&#160;&#160; * @see <a href="http://www.riaidea.com" target="_blank">http://www.riaidea.com</a>
&#160;&#160;&#160;&#160; */

&#160;&#160;&#160;&#160;public class ASDocExample extends Sprite {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * 实例的创建者。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * @default flashlizi
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; */
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public var creator:String;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;private var _date:Date;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * 构造函数-constructor。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; */
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public function ASDocExample() {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.creator = &#34;flashlizi&#34;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this._date = new Date();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dispatchEvent(new Event(Event.INIT));
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; *&#160;&#160;&#160;&#160;打印参数指定内容。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * @param&#160;&#160;&#160;&#160;content 要打印的内容。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; */
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public function print(content:String):void {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;trace(content);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * 测试类的创建者是否与参数指定名称相同。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * @param&#160;&#160;&#160;&#160;name 测试指定的名称。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * @return&#160;&#160;&#160;&#160;创建者与指定名称相同返回true，否则返回false。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; */
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public function test(name:String):Boolean {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return name == creator;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/**
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * 实例的创建时间。
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; */
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public function get date():Date {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;return date || new Date();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;public function set date(value:Date):void {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;_date = value;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;}
}
</textArea><script type="text/javascript">if(!dp.sh.Brushes.actionscript){document.write('<scr'+'ipt type="text/javascript" src="highlighter/js/actionscript.js"></sc'+'ript>');}</script><script type="text/javascript">dp.SyntaxHighlighter.HighlightAll("code_7097",null,false);</script><br/>现在来说明一下如果写类的注释才能创建一个比较完善的API文档。<br/><br/>1）首先，只有包含在/**与*/之间的注释才能被asdoc识别。对一个类的方法或者属性做注释，只要在之前加上这样的注释就可以了。<br/>2）注释的第一行开始（不包括注释标记）是被注释对象（方法、属性等）的说明介绍。当出现@param 这样的注释标记的时候，asdoc就会自动解析为相应的内容。<br/>3）本例ASDocExample中包含了一些常用的asdoc标记：<br/>a、eventType。只能用于注释Event元标记，如[Event(name=&#34;init&#34;, type=&#34;flash.events.Event&#34;)]。这样在API文档中这个事件会出现这个类的Event说明块中。<br/>b、example。用于创建一个示例。示例代码需写在&lt; listing &gt;和&lt; /listing &gt;之间。<br/>c、see。用于创建“另请参见”说明块。<br/>d、default。用于创建属性的“默认值”说明。<br/>e、param。用于创建对方法的参数的说明。<br/>f、return。用于创建对方法的返回值的说明。<br/>g、private。使用此标记的方法或属性将不会输出到API文档中。<br/><br/>更多的asdoc标记请参看：<a target="_blank" href="http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_6.html#186140">http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_6.html#186140</a><br/><br/>下载本例的所有源文件： <img src="http://www.RIAidea.com/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://www.RIAidea.com/attachments/month_0803/q200832010537.rar" target="_blank"><strong>ASDocExample</strong></a>]]></description>
		</item>
		
			<item>
			<link>http://www.RIAidea.com/default.asp?id=37</link>
			<title><![CDATA[Batch convert files to Flashpaper2]]></title>
			<author>flashlizi@gmail.com(flashlizi)</author>
			<category><![CDATA[Flash CS3/AS3]]></category>
			<pubDate>Tue,18 Mar 2008 11:50:11 +0800</pubDate>
			<guid>http://www.RIAidea.com/default.asp?id=37</guid>	
		<description><![CDATA[Command:<br/>FlashPrinter.exe {PATH TO DOCUMENT} -o {OUTPUT PATH &amp; FILE with SWF extention}<br/>Example:<br/>FlashPrinter.exe riaidea.doc -o riaidea.swf]]></description>
		</item>
		
</channel>
</rss>