SWFFile.getObjectType()

Description

This function returns the Flash object type; the value that passed in the dwType parameter when the SWFFile.createFile() function created the file.

Arguments

fileName 

Returns

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.

Example

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