next up previous contents
Next: The variable scope in Up: Tutorials Previous: Stand alone programs and   Contents


The ``trace'' method

You can use the "trace" method to watch the value of the FFish Script variables during preview. The "trace" method does nothing while the output executable file is running.

But the "trace" method in FFish script cannot display the value of variables in Action Script, and the "trace" method in Action Script does nothing while you preview a project in SWFKit.

SWFKit 2 provides a FSCommand "FFish_Trace" to do this. The "FFish_Trace" works like the "trace" method, for it's called in Action Script, it can display the value of variables in Action Script. It does nothing while the output executable file is running.

If you want to save the trace messages while the application is running, you can direct the output to a file by calling the "traceToFile" method.



Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.