Document.setmobilesettings() – Adobe Extending Flash Professional CS5 User Manual
Page 170

148
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<!-- This is before the first rdf:Description tag -->
<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>
<!-- This is between the two rdf:Description tags -->
<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>
<!-- This is after the second rdf:Description tag -->
</rdf:RDF>
In the third example, metadata is in attributes, and different schemas are all in one
rdf:Description
tag:
<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:description='Simple description' />
<rdf:Description rdf:about='' xmlns:xmp='http://ns.adobe.com/xap/1.0/'
xmp:CreateDate='2004-10-12T10:29-07:00' xmp:CreatorTool='Flash Authoring WIN 8,0,0,215' />
</rdf:RDF>
See also
document.setMobileSettings()
Availability
Flash CS3 Professional.
Usage
document.setMobileSettings(xmlString)
Parameters
xmlString
A string that describes the XML settings in a mobile FLA file.
Returns
A value of
true
if the settings were successfully set;
false
otherwise.
Description
Method; sets the value of an XML settings string in a mobile FLA file. (Most mobile FLA files have an XML string that
describes the settings within the document.)
Example
The following example sets the XML settings string for a mobile FLA file. Note that the example below represents a
single line of code.