[osflash] Re:New AS Logger panel in ASDT

fhua.software at gmail.com fhua.software at gmail.com
Sun Aug 7 08:21:16 PDT 2005


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 <carlos.rovira at gmail.com>
Subject: [osflash] New AS Logger panel in ASDT
To: Open Source Flash Mailing List <osflash at osflash.org>
Message-ID: <e1371fc20508070230149057c at mail.gmail.com>
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 





More information about the osflash mailing list