예제 #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)
 {
 }