[Papervision3D] XRay / logging and AS3 projects
John Grden
neoriley at gmail.com
Tue Apr 3 09:36:52 EDT 2007
hehe, yeah, i'm awake now
Kelvin, let me know if you have any questions/suggestions with the logger.
It works well, but it works like the as2 version logger primarily. Here's a
bit more of an explanation:
log.debug("stringMessage"[, objectToRecurse]);
log.info("stringMessage"[, objectToRecurse]);
log.warn("stringMessage"[, objectToRecurse]);
log.error("stringMessage"[, objectToRecurse]);
log.fatal("stringMessage"[, objectToRecurse]);
the first arg is a string, the second can be anything you want to look at.
If you pass a movieclip, it'll also give you the vitals of it like
x,y,alpha,visible,width,height - very handy.
Also, if you use the debug player, it'll give you the calling method the
trace was generated from - I throw an error on purpose and cause the error
stack to be generated so I can grab the top line and show you where you
generated your trace from. Lately, I've had a hard time with this in the
latest player version I have, so I'm not sure it's full proof, but it in
earlier versions it worked.
hth,
John
On 4/3/07, Kelvin Luck <kelvin at kelvinluck.com> wrote:
>
> D'oh! I basically had it working but I didn't notice the little checkbox
> "Show output" in the XRay app. It wasn't checked and so nothing was showing
> up and I thought I was doing something wrong...
>
> Thanks for the help,
>
> Kelvin :)
>
> On Tue, 03 Apr 2007 12:25:29 +0100, Trevor Burton <
> worldofpaper at googlemail.com> wrote:
>
> > You'll have to wait for John to wake up to get all the details on xRay i
> > think... i don't think the AS3 version has all the capabilities of the
> AS2
> > version (not yet, anyway) - but he is working on it here and there.
> >
> > Basic usage is just to create an instance of XrayLog() in the class you
> want
> > to log from and then you can use the info() method to trace out whatever
> you
> > need to trace out.
> >
> > var logger:XrayLog() = new XrayLog();
> >
> > logger.info("Hello World");
> >
> > that sort of thing...
> >
> > T
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070403/11f591ee/attachment.htm
More information about the Papervision3D
mailing list