X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=ce4307f2cb9581d28cbb6d88714e0b2e38ea8aa3;hb=8d26cc0baf8f7d05e72bc7b8e5f1a6f7caa9f158;hp=1544cf8e9fecdd86b44f76b7948d37be8493a064;hpb=17d95f2f55f38f9a4c52e4f5850ff2913e4a4261;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 1544cf8..ce4307f 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -148,6 +148,9 @@ typedef struct _SOUNDINFO U32* right; } SOUNDINFO; +#define FILEATTRIBUTE_USENETWORK 1 +#define FILEATTRIBUTE_AS3 8 +#define FILEATTRIBUTE_SYMBOLCLASS 16 typedef struct _SWF { U8 fileVersion; U8 compressed; // SWF or SWC? @@ -161,6 +164,7 @@ typedef struct _SWF // Basic Functions +SWF* swf_OpenSWF(char*filename); int swf_ReadSWF2(reader_t*reader, SWF * swf); // Reads SWF via callback int swf_ReadSWF(int handle,SWF * swf); // Reads SWF to memory (malloc'ed), returns length or <0 if fails int swf_WriteSWF2(writer_t*writer, SWF * swf); // Writes SWF via callback, returns length or <0 if fails @@ -747,6 +751,8 @@ void*swf_DumpABC(FILE*fo, void*code, char*prefix); void swf_WriteABC(TAG*tag, void*code); void swf_FreeABC(void*code); void swf_AddButtonLinks(SWF*swf, char stop_each_frame, char events); +TAG*swf_AddAS3FontDefine(TAG*tag, U16 id, char*fontname); +#include "as3/compiler.h" // swfaction.c