This function returns the Flash object type; the value that passed in the dwType parameter when the SWFFile.createFile() function created the file.
fileName
fileName argument, which is expressed as a file:// URL, is a path to a Flash Object file. This file is usually a SWF file.
A string that represents the object type, or null if the file is not a Flash Object file or if the file cannot be found.
The following code checks to see if the test.swf file is a Flash object of type myType:
if ( SWFFile.getObjectType("file:///MyMac/test.swf") == ¬
"myType" ){
alert ("This is a myType object.");
}else{
alert ("This is not a myType object.");
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/06_flas9.htm