As3] tracer-flash Code Debugging
Component version: 1.0
Function Description: debugging code (similar to trace commands) can be performed without flash editing ).
Operating Platform: Flash CS3, actionscript3, Flash Player 9 +
Call interface:
Copy code The Code is as follows: public interface com. klstudio. util. Tracer {
// Whether it is a console;
Function isconsole (): Boolean
// Debug the as code;
Static function debug (Object: *): void
}
Instance description:
1. First install the tracer component file (the component installation package file is in the download file );
2. Put the tracer component into the database or scenario;
3. reference the class with "Import com. klstudio. util. Tracer;
4. Open tracer.exe In the downloaded file (this is the console file );
5. The following describes how to call an instance.Program;
Copy code The Code is as follows: Import com. klstudio. util. Tracer;
VaR A: Boolean = false;
Tracer. debug ();
VaR B: Number = 1.22;
Tracer. debug (B );
VaR C: array = ["A", "B"];
Tracer. debug (C );
VaR D: SPRITE = new sprite ();
Tracer. debug (d );
VaR E: Shape = new shape ();
Tracer. debug (E );
Package download