My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Flex2_SWC_notes  
Flex2 SWC notes.
Updated Feb 5, 2010 by neori...@gmail.com

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]);
Comment by re...@buzzware.com.au, Dec 3, 2007
Comment by jed.h...@gmail.com, Feb 1, 2008

Once I download the SWC, how do I use it? I'm on OS X.

Comment by defocal...@gmail.com, Sep 24, 2008

Can i use the swc from within Flash CS3? Doesn't seem to work for me :(

Comment by asinomas...@gmail.com, Sep 26, 2008

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.


Sign in to add a comment
Powered by Google Project Hosting