Flex的MXML文件结构
flex, component's life-cycle

Flex 通用调试工具(ff,chrome,ie8+)

marz posted @ Aug 15, 2010 12:26:46 AM in flex with tags flex tool logger , 2320 readers

如题,写了个很傻逼的调试工具,代码很简单,算是满足我的需求了,需要firebug的支持,chrome可以用firebuglite. 至于ie,需要ie8的开发人员工具.好了 上代码

 

package ifree.common.Logging
{
	import flash.external.ExternalInterface;
	public class Logger
	{
		
		public function log(msg:String):void{
			ExternalInterface.call("console.log",msg);
		} 
		public function info(msg:String):void{
			ExternalInterface.call("console.info",msg);
		} 
		public function error(msg:String):void{
			ExternalInterface.call("console.error",msg);
		} 
		public function debug(msg:String):void{
			ExternalInterface.call("console.debug",msg);
		} 
		public function warn(msg:String):void{
			ExternalInterface.call("console.warn",msg);
		} 
		public function _trace(msg:String):void{
			ExternalInterface.call("console.trace",msg);
		} 
	}
}

 

不要扔砖头


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter