Introduction
The Flex2 SWC includes the logger and inspector for AS3 and Flex2.
Details
To create a new instance of Xray for your application, just import Flex2Xray:
import com.blitzagency.xray.inspector.flex2.Flex2Xray;
//then, create the instance:
private var xray:Flex2Xray = new Flex2Xray();
For logging:
private var log:XrayLog = new XrayLog();
log.debug("stringMessage"[,obj_0, obj_1, ...rest]);
log.info("stringMessage"[,obj_0, obj_1, ...rest]);
log.warn("stringMessage"[,obj_0, obj_1, ...rest]);
log.error("stringMessage"[,obj_0, obj_1, ...rest]);
log.fatal("stringMessage"[,obj_0, obj_1, ...rest]);If you want to just use the logger without inspection:
import com.blitzagency.xray.logger.XrayLog;
private var log:XrayLog = new XrayLog();
log.debug("stringMessage"[,obj_0, obj_1, ...rest]);
log.info("stringMessage"[,obj_0, obj_1, ...rest]);
log.warn("stringMessage"[,obj_0, obj_1, ...rest]);
log.error("stringMessage"[,obj_0, obj_1, ...rest]);
log.fatal("stringMessage"[,obj_0, obj_1, ...rest]);
XRay debugger for Adobe Flex 3 : http://jesq.blogspot.com/2007/12/xray-debugger-for-adobe-flex-3.html
Once I download the SWC, how do I use it? I'm on OS X.
Can i use the swc from within Flash CS3? Doesn't seem to work for me :(
I don't think there's a simple way to use it in Flash CS3, if anybody finds out how please post the solution here.