Adobe 38040334 API Reference - Page 50
SWFFile.readFile, value if the file cannot be found or
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 50 highlights
DREAMWEAVER CS3 45 API Reference 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 fileName argument, which is expressed as a file:// URL, is a path to a Flash Object file. 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", followed by its value. The function returns a null value if the file cannot be found or if it is not a Flash Object file. Example Calling var params = SWFFile.readFile("file:///MyMac/test.swf") returns the following values in the parameters array: "file:///MyMac/test.swt" "dwType" "myType" "text" "Hello World" // template file used to create this .swf file // first parameter // first parameter value // second parameter // second parameter value