Extending Flash |
|
|
|
| Objects > Document object > document.importPublishProfile() | |||
Flash MX 2004.
document.importPublishProfile( fileURI )
fileURI A string, expressed as a file:/// URI, that specifies the path of the XML file defining the profile to import.
An integer that is the index of the imported profile in the profiles list. Returns -1 if the profile cannot be imported.
Method; imports a profile from a file.
The following example imports the profile contained in the profile.xml file and displays its index in the profiles list:
alert(fl.getDocumentDOM().importPublishProfile('file:///C|/Documents and Settings/janeUser/Desktop/profile.xml'));
|
|
|
|