Forget previous... import Log is needed .. i've just used a swf input
using -keep that has already Log class included..
So you need to import Log and force it for mtasc.. as Feng mention..
sorry for confusion
F.
----- Original Message -----
From: "//PolyKrom\\" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Open Source Flash Mailing List"
<[email protected]>
Sent: Sunday, August 07, 2005 4:59 PM
Subject: Re: [osflash] Re:New AS Logger panel in ASDT
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
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org