* ActionFree() implemented
* new function names
};
static int definedactions = sizeof(actions)/sizeof(struct Action);
};
static int definedactions = sizeof(actions)/sizeof(struct Action);
-ActionTAG* swf_GetActions(TAG*tag)
+ActionTAG* swf_ActionGet(TAG*tag)
length = swf_GetU16(tag);
if(length) {
length = swf_GetU16(tag);
if(length) {
- for(t=0;t<length;t++)
- data[t] = swf_GetU8(tag);
+ swf_GetBlock(tag, data, length);
-void swf_SetActions(TAG*tag, ActionTAG*action)
+void swf_ActionFree(ActionTAG*action)
+{
+ while(action)
+ {
+ ActionTAG*tmp;
+ if(action->data && action->data != action->tmp)
+ free(action->data);
+ tmp = action;
+ action=action->next;
+ free(tmp);
+ }
+}
+
+void swf_ActionSet(TAG*tag, ActionTAG*action)