Пример #1
0
        static int main()
        {
            var __generatePlasma = AS3_h.AS3_Function(null, generatePlasma);
            var __shiftPlasma    = AS3_h.AS3_Function(null, shiftPlasma);
            var __result         = AS3_h.AS3_Object("generatePlasma: AS3ValType,shiftPlasma: AS3ValType", __arglist(__generatePlasma, __shiftPlasma));

            AS3_h.AS3_Release(__generatePlasma);
            AS3_h.AS3_Release(__shiftPlasma);
            AS3_h.AS3_LibInit(__result);
            return(0);
        }
        static int main()
        {
            var __InitializeMandelbrotProvider = AS3_h.AS3_Function(null, InitializeMandelbrotProvider);
            var __DrawMandelbrotSet            = AS3_h.AS3_Function(null, DrawMandelbrotSet);
            var __result = AS3_h.AS3_Object("InitializeMandelbrotProvider: AS3ValType,DrawMandelbrotSet: AS3ValType", __arglist(__InitializeMandelbrotProvider, __DrawMandelbrotSet));

            AS3_h.AS3_Release(__InitializeMandelbrotProvider);
            AS3_h.AS3_Release(__DrawMandelbrotSet);
            AS3_h.AS3_LibInit(__result);
            return(0);
        }
Пример #3
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);
        }