Hi PolyKrom,

It's strange, if i did not import Log and use var _log:Log in my class
, then i must use -trace Log.addMessage Log.as
(which did the same thing) in my build file, otherwise it doesn't work for me.


by the way, i use MTASC 1.09 and build.xml not Flashout.

Feng Hua

On 8/7/05, //PolyKrom\ <[EMAIL PROTECTED]> wrote:
> No need to import Log in Application... Just add a Logger to your project
> ,add -trace Log.AddMessage to your build,
> click on  the green arrow button in the AS Logger and you'll have a the
> traces output in the AS Logger !!
> You can use a simple trace("message",levelId) or FlashOut Traces and other
> types (don't know how to use others)..
> For the simple trace, You have the following level for your traces :
> 0:Info,1:Error,2:Warning ..
> 
> It rocks !!
> 
> 
> 
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sunday, August 07, 2005 5:21 PM
> Subject: [osflash] Re:New AS Logger panel in ASDT
> 
> 
> > Hi, Carlos ;
> >
> > try this:
> > in Actionscript Perspective, in Navigator
> > select project, right click --> add Logger to Project
> >
> > then the virtual folder "logger" should appear in your
> > project.
> >
> > in Application.as
> > import Log;
> > class Application
> > {
> >    private var _log:Log; // force mtasc to compile Log.as
> >    function Application(createdBy)
> > {
> >  // Re-assigment of _root to Application instance
> >  createdBy.__proto__ = this.__proto__;
> >  createdBy.__constructor__ = Application;
> >  this = createdBy;
> >  setup(); }
> > public function setup()
> > {
> >        TRACE("hello world");
> >  } public static function main(createdBy:MovieClip)
> > {
> >      var app = new Application(createdBy);
> > }
> > }; // end of class
> >
> > in your build file
> >
> > use -trace Log.addMessage
> >
> > finnaly don't forget to "start logger" green button in your
> > AS Logger panel.
> >
> > Hope this help!
> >
> > Feng Hua
> >
> >
> > Message: 2
> > Date: Sun, 7 Aug 2005 11:30:56 +0200
> > From: Carlos Rovira <[EMAIL PROTECTED]>
> > Subject: [osflash] New AS Logger panel in ASDT
> > To: Open Source Flash Mailing List <[email protected]>
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi List,
> >
> > Someone knows how this new feature works?, I start the AS Logger, but
> > I don't know what's expecting this new panel...
> >
> > --
> > ::| Carlos Rovira
> > ::| http://www.carlosrovira.com
> >
> >
> > _______________________________________________
> > osflash mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> 
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to