- if(swf->fileVersion >= 9) {
- if ((!swf->firstTag || swf->firstTag->id != ST_SCENEDESCRIPTION) &&
- (!swf->firstTag ||
- !swf->firstTag->next || swf->firstTag->next->id != ST_SCENEDESCRIPTION) &&
- (!swf->firstTag ||
- !swf->firstTag->next ||
- !swf->firstTag->next->next || swf->firstTag->next->next->id != ST_SCENEDESCRIPTION))
- {
- TAG*scene = swf_InsertTagBefore(swf, swf->firstTag,ST_SCENEDESCRIPTION);
- swf_SetU16(scene, 1);
- swf_SetString(scene, (U8*)"Scene 1");
- swf_SetU8(scene, 0);
- }
- }
-
- if(swf->fileVersion >= 9) {
- TAG*tag = swf->firstTag;
- U32 flags = 0x08; // | 128 = usenetwork, | 16 = hasmetadata | 8 = actionscript3
- int has_version_8_action=0;
- int has_version_9_action=0;
- while(tag) {
- /* FIXME: this doesn't find actionscript in buttons */
- if(tag->id == ST_DOACTION || tag->id == ST_DOINITACTION)
- has_version_8_action=1;
- if(tag->id == ST_DOABC)
- has_version_9_action=1;
- tag = tag->next;
+ if(swf->fileVersion >= 9) {
+ if ((!swf->firstTag || swf->firstTag->id != ST_SCENEDESCRIPTION) &&
+ (!swf->firstTag ||
+ !swf->firstTag->next || swf->firstTag->next->id != ST_SCENEDESCRIPTION) &&
+ (!swf->firstTag ||
+ !swf->firstTag->next ||
+ !swf->firstTag->next->next || swf->firstTag->next->next->id != ST_SCENEDESCRIPTION))
+ {
+ TAG*scene = swf_InsertTagBefore(swf, swf->firstTag,ST_SCENEDESCRIPTION);
+ swf_SetU16(scene, 1);
+ swf_SetString(scene, (U8*)"Scene 1");
+ swf_SetU8(scene, 0);
+ }