static int main() { //define the methods exposed to ActionScript //typed as an ActionScript Function instance AS3_Val echoMethod = AS3_h.AS3_Function(null, echo); // construct an object that holds references to the functions AS3_Val result = AS3_h.AS3_Object("echo: AS3ValType", __arglist(echoMethod)); // Release AS3_h.AS3_Release(echoMethod); // notify that we initialized -- THIS DOES NOT RETURN! AS3_h.AS3_LibInit(result); // should never get here! return(0); }
/// <summary> /// notify that the library has initialized (does not return) /// </summary> /// <param name="libData"></param> public static void AS3_LibInit(AS3_Val libData) { }
public static void AS3_ArrayValue(AS3_Val array, string tt, __arglist) { }
public static void AS3_Release(AS3_Val obj) { }
static AS3_Val echo(object self, AS3_Val args) { var nullString2 = "alchemy via c# via jsc"; return AS3_h.AS3_String(nullString2); }
static AS3_Val echo(object self, AS3_Val args) { var nullString2 = "alchemy via c# via jsc"; return(AS3_h.AS3_String(nullString2)); }