code: def all_tags_of_type(self, type_or_types, recurse_into_sprites = True):
          
          for t in self.tags:
              if isinstance(t, type_or_types):
                  yield t
          if recurse_into_sprites:
              for t in self.tags:
                  # recurse into nested sprites
                  if isinstance(t, SWFTimelineContainer):
                      for containedtag in t.all_tags_of_type(type_or_types):
                          yield containedtag
docs: Generator for all tags of the given type_or_types.
  
          Generates in breadth-first order, optionally including all sub-containers.