mSystem.setStartAtLogin()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows NT Support: Flash 7 SWF + mProjector 2.0 build 'db';

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 2.0; replacing mProjector 1.0 async

Usage

mSystem.setStartAtLogin(start:Boolean) : String

Parameters

start - True or false.

Returns

A string.; ; WINDOWS ONLY: Returns the path to the shortcut created in the Startup folder.

If your application is using a third party installer, you can add this file to it's install.log file so that it's uninstaller will know to remove this file at uninstall-time.

Another uninstall option would be to have the uninstaller can your mProjector application which intern would call mApplication.setStartAtLogin(false) to remove the shortcut file.

Description

Method; Sets whether or not the application starts at user login.

On startup Windows runs all the applications and shortcuts in the user's "Startup" folder. This command creates or deletes the shortcut file in the Startup folder.

On the Mac this command adds or removes the application from the user's "Startup Items" in the System Preferences/Accounts panel .

Example

The following example sets the application to start at login. On Windows, the command returns the path of the shortcut created in the Startup folder.

var shortcutFilename:String = mSystem.setStartAtLogin(true);

See Also

mSystem.getStartAtLogin(), mSystem.getStartupFolder()

Code Examples

Startup Application