2009/10/20 armen...@gmail.com <armen...@gmail.com>:
> Does swfmill support metadata in SWF files? If so, is there some
> reference/documentation to it?
>
> I googled and the only clue was "ImportAssets2" tag, which I have no
> idea what does.

Yes, in both the simple and full dialects. Following examples are
roughly equivalent. The simple dialect is currently quite limiting
because you can’t put anything in rdf:Description except a single
string for each of title and description. In the full dialect the
<Metadata> tag can contain any XML you like (although per the SWF
specification it should be RDF).

Simple dialect:
<movie xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
  <meta title="title" description="description">
    <!-- Additional RDF metadata here. -->
  </meta>
</movie>

Full dialect:
<swf ... xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
    xmlns:dc="http://purl.org/dc/elements/1.1/";>
  <Header>
    ...
    <FileAttributes hasMetaData="true" ... />
  </Header>
  <Metadata>
    <rdf:RDF>
      <rdf:Description>
        <dc:title>
          title
        </dc:title>
        <dc:description>
          description
        </dc:description>
      </rdf:Description>
      <!-- Additional RDF metadata here. -->
    </rdf:RDF>
  </Metadata>
  ...
</swf>

Hope this helps,
Dan.

_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to