⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 action.c.svn-base

📁 A Flash Player with ActionScript support. Write in C and C++. It have two part, one is Player and an
💻 SVN-BASE
字号:
#include <stdio.h>#include <glib.h>#include <assert.h>#include "define.h"#include "player_pub.h"#include "base_types.h"#include "instance.h"#include "swf_file_pub.h"#include "spliter_pub.h"#include "render_pub.h"#include "movie_clips_ins.h"#include "movie_clips_def.h"#include "button_ins.h"#include "button_def.h"#include "action.h"#include "event.h"#include "action_fortest.h"#include "xwin_event.h"#if WITH_DMALLOC#include <dmalloc.h>#endifextern player_t      *player_p;void ac_exec_do(to_exec_t *to_exec_p) {    struct 	ActionRecord	*p;    char	*name_p = to_exec_p->name_p;    printf("\tname %s\n", name_p);    // button 事件中的事情都是对其所属 mc 而言    /*    if (ins_p->ins_type == INS_BTN) {        node_p = node_p -> parent;    };    assert(node_p);    name_p = ins_node_to_name(node_p);    */    p = to_exec_p->as_p;    while (p) {        actionscript(p->Code,p->Length,name_p);        p = p->NextP;    }    free(name_p);    //    if (to_exec_p->as_p)};void ac_exec(void) {    GSList		*p;    to_exec_t		*to_exec_p;    //   printf("in ac_exec\n");    while (player_p->actionq_p) {        to_exec_p = (to_exec_t*)player_p->actionq_p->data;        assert(to_exec_p);        if (to_exec_p->name_p) {            //   printf("in ac_exec ------------- %p \n", to_exec_p->as_p);            ac_exec_do(to_exec_p);        }        p = player_p->actionq_p;        player_p->actionq_p = g_slist_remove_link(player_p->actionq_p,p);        free(p->data);        g_slist_free_1(p);    };};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -