[xray] Problems with FAME
John Grden
neoriley at gmail.com
Wed Dec 20 16:41:20 EST 2006
importing XrayLog should be plenty.
It just sounds like you haven't declared your "log" variable, hence why the
var log = new XrayLog() compiles.
should be as simple as:
import com.blitzagency.xray.logger.XrayLog;
class myClass
{
private var log:XrayLog;
function MyClass()
{
log = new XrayLog();
var testvar:String = "rockonflash.com";
trace(log.debug("testvar", testvar));
}
}
does that help? if you have the ConnectorOnly package with MtascUtility
class, you'll get all the nice extra trace info from MTASC
On 12/20/06, orangeflower at hotmail.com <orangeflower at hotmail.com> wrote:
>
> You're compiling w/ MTASC correct? If so, keep in mind you may need to
> explicitly add the reference to the XRay libraries in a -cp (classpath)
> MTASC argument.
>
> Example:
>
> mtasc -header 973:571:31:8B7A72 -swf [path to your swf] -main -version 8
> [main app. class] -cp [path to XRay libraries]
>
> T
>
> ----- Original Message -----
> From: "Stephen Hueners" <steve at juststeve.com>
> To: <xray at osflash.org>
> Sent: Wednesday, December 20, 2006 2:29 PM
> Subject: [xray] Problems with FAME
>
> > I've just installed the latest package 1.62 and am trying to get things
> > working with FAME (also latest versions Eclipse SDK 3.2.1, ASDT.0.08,
> > Flashout 0.2.1.6, MTASC 1.12).
> >
> > I'm following the code posted on the OSFlash page (trace usage with
> > MTASC/FLASC) but am getting 'unkown type' compliation errors. Being new
> to
> > FAME I'm sure I'm missing something simple/basic but:
> >
> > log= new XrayLog();' tosses a 'Type error Unknow variable'.
> >
> > On one hand, all I can think of is that class dependancies are
> hosed...on
> > the other....in my entry class I can eliminate the error by:
> >
> > var log= new XrayLog(); //but nothing else works.
> > HOWEVER:
> > log= new XrayLog(); produces 'unknown class' error.
> >
> > So the compiler's finding it's way to the package....a conventional
> trace
> > placed in com.blitzagency.xray.logger.XrayLog constructer's constructor
> > will
> > fire...but nothing when replaceing the Trace switch as directed and
> > nothing
> > in the swf.
> >
> > Many thankx,
> > --steve...
> >
> >
> >
> >
> > _______________________________________________
> > xray mailing list
> > xray at osflash.org
> > http://osflash.org/mailman/listinfo/xray_osflash.org
> >
>
> _______________________________________________
> xray mailing list
> xray at osflash.org
> http://osflash.org/mailman/listinfo/xray_osflash.org
>
--
[ JPG ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/xray_osflash.org/attachments/20061220/14d57621/attachment.htm
More information about the xray
mailing list