|
List Info
Thread: AS3 usage from with Flash IDE
|
|
| AS3 usage from with Flash IDE |
  United Kingdom |
2007-07-11 10:06:38 |
|
|
Hi, I'm looking for some info on instantiation basically just to use the
logger for now.
From the list
The good news is, I've written it to
work:
1. as a component for CS3 (like the as2
version) 2. with the new constructor: var xray:Xray = new
Xray();
I've done an svn update from the pv3d repo and cant find Xray as a
class?
Or can someone just point me how to use the new logger for now?
Thanks, MaTT
AS2 was like so...
//Set log level with:
import com.blitzagency.xray.logger.LogManager;
LogManager.setLevel(0);
//debug=0, info=1, warn=2, error=3, fatal=4 can be used
logger = LogManager.getLogger("com.blitzagency.xray.logger.XrayLogger");
logger.debug("testing Logger", obj);
|
| Re: AS3 usage from with Flash IDE |

|
2007-07-11 10:37:31 |
|
Hi,
an update from the papervision3d repository wont give you a new version of xray i think.
But I might be wrong, who knows where John got his secret stash hidden 
greetz
JC
On 7/11/07, matt_b_muller hotmail.com">matt_b_muller hotmail.com < matt_b_muller hotmail.com">matt_b_muller hotmail.com
> wrote:
Hi, I'm looking for some info on instantiation basically just to use the logger for now.
From the list
The good news is, I've written it to work:
1. as a component for CS3 (like the as2 version) 2. with the new constructor: var xray:Xray = new Xray();
I've done an svn update from the pv3d repo and cant find Xray as a class?
Or can someone just point me how to use the new logger for now?
Thanks, MaTT
AS2 was like so...
//Set log level with:
import com.blitzagency.xray.logger.LogManager;
LogManager.setLevel(0);
//debug=0, info=1, warn=2, error=3, fatal=4 can be used
logger = LogManager.getLogger("com.blitzagency.xray.logger.XrayLogger");
logger.debug("testing Logger", obj);
_______________________________________________ xray mailing list osflash.org">xray osflash.org
http://osflash.org/mailman/listinfo/xray_osflash.org
|
| Re: AS3 usage from with Flash IDE |

|
2007-07-11 10:41:40 |
|
Nope it's wide open 
http://code.google.com/p/osflash-xray/source
SVN link: http://osflash-
xray.googlecode.com/svn/trunk/
Usage:
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]);
On 7/11/07, Hans Wichman < j.c.wichman objectpainters.com">
j.c.wichman objectpainters.com> wrote:Hi,
an update from the papervision3d repository wont give you a new version of xray i think.
But I might be wrong, who knows where John got his secret stash hidden 
greetz
JC
On 7/11/07, matt_b_muller hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
matt_b_muller hotmail.com < matt_b_muller hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">matt_b_muller hotmail.com
> wrote:
Hi, I'm looking for some info on instantiation basically just to use the logger for now.
From the list
The good news is, I've written it to work:
1. as a component for CS3 (like the as2 version) 2. with the new constructor: var xray:Xray = new Xray();
I've done an svn update from the pv3d repo and cant find Xray as a class?
Or can someone just point me how to use the new logger for now?
Thanks, MaTT
AS2 was like so...
//Set log level with:
import com.blitzagency.xray.logger.LogManager; LogManager.setLevel(0); //debug=0, info=1, warn=2, error=3, fatal=4 can be used
logger = LogManager.getLogger("com.blitzagency.xray.logger.XrayLogger"); logger.debug("testing Logger", obj
);
_______________________________________________ xray mailing list xray osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xray osflash.org
http://osflash.org/mailman/listinfo/xray_osflash.org
_______________________________________________ xray mailing list osflash.org">xray osflash.org
http://osflash.org/mailman/listinfo/xray_osflash.org
-- [ JPG ]
|
| Re: AS3 usage from with Flash IDE |

|
2007-07-11 10:43:01 |
|
Easier to read:
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]);
On 7/11/07, John Grden < neoriley gmail.com">neoriley gmail.com> wrote:
Nope it's wide open 
http://code.google.com/p/osflash-xray/source
SVN link: http://osflash-
xray.googlecode.com/svn/trunk/
Usage:
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]);
On 7/11/07, Hans Wichman < j.c.wichman objectpainters.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
j.c.wichman objectpainters.com> wrote:Hi,
an update from the papervision3d repository wont give you a new version of xray i think.
But I might be wrong, who knows where John got his secret stash hidden 
greetz
JC
On 7/11/07, matt_b_muller hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
matt_b_muller hotmail.com < matt_b_muller hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">matt_b_muller hotmail.com
> wrote:
Hi, I'm looking for some info on instantiation basically just to use the logger for now.
From the list
The good news is, I've written it to work:
1. as a component for CS3 (like the as2 version) 2. with the new constructor: var xray:Xray = new Xray();
I've done an svn update from the pv3d repo and cant find Xray as a class?
Or can someone just point me how to use the new logger for now?
Thanks, MaTT
AS2 was like so...
//Set log level with:
import com.blitzagency.xray.logger.LogManager; LogManager.setLevel(0); //debug=0, info=1, warn=2, error=3, fatal=4 can be used
logger = LogManager.getLogger("com.blitzagency.xray.logger.XrayLogger"); logger.debug("testing Logger", obj
);
_______________________________________________ xray mailing list xray osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xray osflash.org
http://osflash.org/mailman/listinfo/xray_osflash.org
_______________________________________________ xray mailing list xray osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xray osflash.org
http://osflash.org/mailman/listinfo/xray_osflash.org
-- [ JPG ]
-- [ JPG ]
|
[1-4]
|
|