Пример #1
0
        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);
        }
Пример #2
0
		/// <summary>
		/// notify that the library has initialized (does not return) 
		/// </summary>
		/// <param name="libData"></param>
		public static void AS3_LibInit(AS3_Val libData)
		{
		}
Пример #3
0
		public static void AS3_ArrayValue(AS3_Val array, string tt, __arglist)
		{

		}
Пример #4
0
		public static void AS3_Release(AS3_Val obj)
		{
		}
Пример #5
0
		static AS3_Val echo(object self, AS3_Val args)
		{
			var nullString2 = "alchemy via c# via jsc";

			return AS3_h.AS3_String(nullString2);
		}
Пример #6
0
        static AS3_Val echo(object self, AS3_Val args)
        {
            var nullString2 = "alchemy via c# via jsc";

            return(AS3_h.AS3_String(nullString2));
        }
Пример #7
0
 /// <summary>
 /// notify that the library has initialized (does not return)
 /// </summary>
 /// <param name="libData"></param>
 public static void AS3_LibInit(AS3_Val libData)
 {
 }
Пример #8
0
 public static void AS3_ArrayValue(AS3_Val array, string tt, __arglist)
 {
 }
Пример #9
0
 public static void AS3_Release(AS3_Val obj)
 {
 }