next up previous contents
Next: Handling events of the Up: Using FFish script objects Previous: Adding functions, preview, and   Contents

About the trace method of SWFKit

When you preview a SWFKit project, the trace method of action script cannot work. In this case, you would have to use the trace method of FFish script, which is "SWFKit.Global.trace". In the above example, we added a function called "strace" into "_root":
function strace(value)
{
    SWFKit.Global.trace(value);
}
Although this function does nothing in the output .exe file, the flash player will always pass the "value" parameter to FFish scripting language. It will do harm to the efficiency of the output .exe file in this case. Hence, we recommend you to modify the strace function to the following form when you are ready to build the release version of your .exe file.
/*
function strace(value)
{
    SWFKit.Global.trace(value);
}
*/
strace = trace;



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