- swf_SetDefineID(tags->TAG, a->id);
- tag = write_tag(tag, tags->TAG);
+ asset_tag_t*t = tags->asset_tag;
+ int i;
+ for(i=0;i<t->num_deps;i++) {
+ asset_dependency_t*dep = &t->deps[i];
+ tag = write_asset(tag, dep->asset, written, currentid);
+ PUT16(&t->tag->data[dep->patch_pos], dep->asset->id);
+ }
+ swf_SetDefineID(t->tag, a->id);
+ tag = write_tag(tag, t->tag);