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

📄 clonesprite-events.c

📁 Swfdec is a decoder/renderer for Macromedia Flash animations. The decoding and rendering engine is
💻 C
字号:
/* gcc `pkg-config --libs --cflags libming` clonesprite-events.c -o clonesprite-events && ./clonesprite-events */#include <ming.h>static voiddo_movie (int version){  SWFMovie movie;  SWFMovieClip clip;  SWFDisplayItem item;  char name[100];  movie = newSWFMovieWithVersion (version);  movie = newSWFMovie();  SWFMovie_setRate (movie, 1);  SWFMovie_setDimension (movie, 200, 150);  clip = newSWFMovieClip ();  item = SWFMovie_add (movie, (SWFBlock) clip);  SWFDisplayItem_setName (item, "movie");  SWFDisplayItem_addAction (item, newSWFAction ("trace (this + \": init\");"), SWFACTION_INIT);  SWFDisplayItem_addAction (item, newSWFAction ("trace (this + \": construct\");"), SWFACTION_CONSTRUCT);  SWFDisplayItem_addAction (item, newSWFAction ("trace (this + \": load\");"), SWFACTION_ONLOAD);  SWFDisplayItem_addAction (item, newSWFAction ("trace (this + \": unload\");"), SWFACTION_UNLOAD);  SWFMovie_add (movie, (SWFBlock) newSWFAction (""	"trace (\"duplicating...\");"	"asm {"	"  push \"movie\""	"  getvariable"	"  push \"foo\", 10"	"  duplicatemovieclip"	"};"	"trace (\"...done\");"	""));  SWFMovie_nextFrame (movie);  SWFMovie_add (movie, (SWFBlock) newSWFAction (""	"loadMovie (\"FSCommand:quit\", \"\");"	""));  SWFMovie_nextFrame (movie);  sprintf (name, "clonesprite-events-%d.swf", version);  SWFMovie_save (movie, name);}intmain (int argc, char **argv){  int i;  if (Ming_init ())    return 1;  for (i = 5; i < 9; i++)    do_movie (i);  return 0;}

⌨️ 快捷键说明

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