Lingo Dictionary > O-R > runMode

 

runMode

Syntax

the runMode

Description

Function; returns a string indicating the mode in which the movie is playing. Possible values are as follows:

Author—The movie is running in Director.

Projector—The movie is running as a projector.

Plugin—The movie is running as a Shockwave plug-in or other scripting environment, such as LiveConnect or ActiveX.

Java Applet—The movie is playing back as a Java applet.

The safest way to test for particular values in this property is to use the contains operator. This helps avoid errors and allows partial matches.

Example

This statement determines whether or not external parameters are available and obtains them if they are:

if the runMode contains "Plugin" then
	-- decode the embed parameter
	if externalParamName(swURL) = swURL then
		put externalParamValue(swURL) into myVariable
	end if
end if

See also

environment, platform