def build_define_tags_string(from_character_id)
      str = ""
      @define_tags.each do |t|
        if t.character_id
          from_character_id += 1
          @idmap[t.character_id] = from_character_id
          str << t.rawdata_with_define_character_id(@idmap, @idmap[t.character_id])
        end
      end
      [str, from_character_id+1]
    end
def build_define_tags_string(from_character_id)
      str = ""
      @define_tags.each do |t|
        if t.character_id
          from_character_id += 1
          @idmap[t.character_id] = from_character_id
          str << t.rawdata_with_define_character_id(@idmap, @idmap[t.character_id])
        end
      end
      [str, from_character_id+1]
    end
置換するSWFからCharacterIdを付け替えながらDefineタグを抽出する.
 対象のSWFにBitmapIDの参照が含まれる場合、これも合わせて付け替える.
 同時に、CharacterIdの対応付けマップを作成する.