Adobe 38040334 - Dreamweaver CS3 User Manual page 50

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

if ( SWFFile.getObjectType("file:///MyMac/test.swf") == "myType" ){
alert ("This is a myType object.");
}else{
alert ("This is not a myType object.");
}
SWFFile.readFile()
Description
This function reads a Flash Object file.
Arguments
fileName
• The
argument, which is expressed as a file:// URL, is a path to a Flash Object file.
fileName
Returns
An array of strings where the first array element is the full path to the template SWT file. The following strings
represent the parameters (name/value pairs) for the object. Each name is followed in the array by its value. The first
name/value pair is
"dwType"
if it is not a Flash Object file.
Example
Calling
var params = SWFFile.readFile("file:///MyMac/test.swf")
parameters array:
"file:///MyMac/test.swt"
"dwType"
"myType"
"text"
"Hello World"
, followed by its value. The function returns a
// template file used to create this .swf file
// first parameter
// first parameter value
// second parameter
// second parameter value
value if the file cannot be found or
null
returns the following values in the
DREAMWEAVER CS3
45
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents