-
Notifications
You must be signed in to change notification settings - Fork 0
/
SWFFile.h
78 lines (50 loc) · 1.18 KB
/
SWFFile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* File: SWFFile.h
* Author: brucewang
*
* Created on October 24, 2009, 9:27 PM
*/
#ifndef _SWFFILE_H
#define _SWFFILE_H
#include "SWFReader.h"
#include "Tag.h"
#include "Rect.h"
#include "Header.h"
#include <list>
using namespace std;
class SWFFile {
private:
SWFReader *swf;
szstring fileName;
unsigned char *SwfData;
list<Tag> m_TagList;
Header m_Header;
//
//
//
bool ReadHeader();
//
//
//
// Doesn't do much but iterate through the tags
void IdentifyTags();
public:
//#region Properties
szstring FileName();
list<Tag>* GetTagList(){ return (list<Tag> *)&m_TagList; }
//#endregion
void ChangeEditValue(const char *szVariableName, const char *szInitialValue);
void ChangeJpgImg(const char* szExportName, const char* szFilePath2Replacewith);
void ChangeSprite(const char* szExportName, const char* szFilePath2Replacewith);
UInt16 FindMatchingIdFromExptName(const char* szExportName);
ulong SaveTo(char* filename);
/// Destructor
~SWFFile();
//
//
//
//#region Constructors
SWFFile(const char* fileName);
//#endregion
};
#endif /* _SWFFILE_H */