next up previous contents
Next: getExeName Up: Methods Previous: processMsg   Contents


getAdditionalFile

Description

Extracts attached files packed in the executables.


Syntax

getAdditionalFile(name)


Parameters

name
String. Specifies the name of the file or folder to extract. The name contains a relative path to the "Application" folder. If the name specifies a filename, the method extracts the specified file to the temporary folder and returns the pathname of the extracted file. E.g. extract ¡°media1.swf"

var m = getAdditionalFile(¡°\\movies\\media1.swf");
If the name specifies a path, the method extracts the specified folder and all it¡¯s files and subfolders to the temporary folder and returns the pathname of the folder. Invoking the method without parameter or with a empty string extracts all files and folders. E.g. extract the movies folder:

var movies = getAdditionFile(¡°\\movies");
var m = movies + ¡°\\" + media1.swf;
Note: This method works only with files and folders under the "Application" folder. SWFKit does not pack any files under the ¡°Windows¡± folder. Only the setup program uses that files.


Returns

String. If the file or folder does not exist, returns null.




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.