MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 154

Extending flash
Table of Contents

Advertisement

Returns
A Boolean value:
true
Description
Method; sets the XML metadata for the specified document, overwriting any existing
metadata. The XML passed as
stored. If it cannot be validated as legal XML or violates specific rules, then the XML
metadata is not set and
detailed error information.)
Even if true is returned, the XML that is set may not be exactly the same string that you
passed in. To get the exact value to which the XML was set, use
document.getMetadata()
The format of the metadata is RDF that is compliant with the XMP specification. For more
information about RDF and XMP, see the following sources:
The RDF Primer at
The RDF specification at
The XMP home page at
Example
The following examples show several different legal ways to represent the same data. In all of
these cases but the second one, if the data were sent to
not be rewritten (aside from removing line breaks).
In the first example, metadata is in tags, with different schemas placed in separate
tags:
rdf:Description
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/1.1/'>
<dc:title>Simple title</dc:title>
<dc:description>Simple description</dc:description>
</rdf:Description>
<rdf:Description rdf:about='' xmlns:xmp='http://ns.adobe.com/xap/1.0/'>
<xmp:CreateDate>2004-10-12T10:29-07:00</xmp:CreateDate>
<xmp:CreatorTool>Flash Authoring WIN 8,0,0,215</xmp:CreatorTool>
</rdf:Description>
</rdf:RDF>
154
Objects
if successful;
otherwise.
false
strMetadata
is returned. (If
false
.
www.w3.org/TR/rdf-primer/
www.w3.org/TR/1999/REC-rdf-syntax-19990222/
www.adobe.com/products/xmp/
is validated and may be rewritten before being
is returned, there is no way to get more
false
Document.setMetadata()
, it would

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents