flex另一个调试工具

http://blog.hexagonstar.com/alcon/
目前已经升级到3.0版本。
下载完后是个air文件,直接安装,安装后的目录里面有详细的API帮助文档。

Quickstart(Alcon快速入门):

To use the Debug classes follow these steps ...

For ActionScript 3:
C:\Program Files\Hexagon Star Softworks\Alcon\debug\as3\有源码和Alcon.swc文件。

Copy the file alcon.swc from the path described above to your preferred path that you are using for your ActionScript 3 thirdparty classes and SWCs (on Windows you can also add this folder directly to your classpath).
When using the Flex mxmlc compiler the alcon.swc can be added to the library path with the library-path argument.

First follow the API Installation Steps. Once that's done, using Alcon it is straightforward! The static Debug API can be used in any ActionScript 2 and 3 class by simply importing the Debug class with:

import com.hexagonstar.util.debug.Debug;

... and then using any of the Debug class methods anywhere in your class, most commonly trace:

Debug.trace("Never trust a computer you can't throw out a window.");


小试牛刀:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:Script>
		<![CDATA[
			import com.hexagonstar.util.debug.Debug;
			
			function doClick():void{
				Debug.trace("测试成功。");
				Debug.traceObj(btn);
			}
		]]>
	</mx:Script>
	<mx:Button id="btn" label="按钮" click="doClick();"/>
</mx:Application>


你可能感兴趣的:(windows,xml,Flex,AIR,actionscript)