next up previous contents
Next: Calling actionscript methods from Up: Using FFish script objects Previous: Differences between wrapper classes   Contents

Calling methods written in ffish script from within actionscript 2 or 3

From swfkit v3.2, you can use the Global class to call any methods written in ffish script. For example, to call a method named ``_add'' defined in ffish script
import SWFKit.*;
var g = Global;
var result = g._add(100, 200);
The above code will work in both actionscript 2 and 3. And please be sure that you must construct an instance of the Global class before you can use it to call ffish script methods.



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