[Papervision3D] Xray logger fixed...

Yaakov Albietz yalbietz at gmail.com
Sun Jan 7 23:54:48 EST 2007


followed your instructions, and got the following compiler error:
C:\Program
Files\FlashDevelop\Library\com\blitzagency\xray\logger\XrayLog.as: Error: A
file found in a source-path must have an externally visible definition. If a
definition in the file is meant to be externally visible, please put the
definition in a package.

any ideas?

On 1/7/07, John Grden <neoriley at gmail.com> wrote:
>
> I just committed to the as3 repository the fix for Xray logger if anyone
> is interested in using it.
>
> Basically, the problem was in how I "trick" the debug player into giving
> me the err.getStackTrace().  I cause a bogus error when a new log is sent
> for tracing so that the debug player will give me the stack trace and I can
> tell the user what class and method made the call (think MTASC tracing if
> you've ever tried that).
>
> Anyway, with the regulare player (standalone or web), r16 allowed the
> sloppy way in which I was trying to see if a stack trace existed.  Now it's
> updated with hasOwnProperty() check on the err object and another try/catch
> with another method and bingo, works great again :)
>
> To use, its very simple:
> import com.blitzagency.xray.logger.XrayLog;
>
> private var log:XrayLog = new XrayLog();
>
> //... usage:
>
> log.debug("string message"[, object]);
> log.info("string message"[, object]);
> log.warn("string message"[, object]);
> log.error("string message"[, object]);
> log.fatal("string message"[, object]);
>
> the 2nd argument is optional, and will be recursed completely.
>
> tracing a target camera, gives me this in the output:
>
> log.debug("camera", camera);
> //.... output
>
> (228)
> camera
> 0: [Object]
>     name: sort
>     value: true
>     type: Boolean
> 1: [Object]
>     name: zoom
>     value: 1.3
>     type: Number
> 2: [Object]
>     name: focus
>     value: 500
>     type: Number
> 3: [Object]
>     name: sin
>     value: x:0 y:0 z:0
>     type: org.papervision3d.core::Number3D
> 4: [Object]
>     name: cos
>     value: x:0 y:0 z:0
>     type: org.papervision3d.core::Number3D
> 5: [Object]
>     name: visible
>     value: true
>     type: Boolean
> 6: [Object]
>     name: extra
>     value:
>     type: Object
> 7: [Object]
>     name: y
>     value: 0
>     type: Number
> 8: [Object]
>     name: z
>     value: 0
>     type: Number
> 9: [Object]
>     name: scene
>     value:
>     type: org.papervision3d.core.proto::SceneObject3D
> 10: [Object]
>     name: x
>     value: 0
>     type: Number
> 11: [Object]
>     name: screenZ
>     value: NaN
>     type: Number
>
> all you need is the Xray interface and bingo, you're up and running.
> http://www.osflash.org/xray#interface_v2.0_-_6.1.2006
>
> Thanks all,
> --
> [  JPG  ]
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070107/7d7b685f/attachment.htm


More information about the Papervision3D mailing list