+ 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) {
+ if (swf->firstTag && swf->firstTag->id != ST_FILEATTRIBUTES)
+ {
+ U32 flags = 0x8; // | 128 = usenetwork, | 16 = Actionscript3 | 8 = hasmetadata
+ swf_SetU32(swf_InsertTagBefore(swf, swf->firstTag,ST_FILEATTRIBUTES),flags);
+ }
+ }
+