Lingo Dictionary > O-R > platform

 

platform

Syntax

the platform

Description

System property; indicates the platform type for which the projector was created.

This property can be tested but not set.

Possible values are the following:

Possible value

Corresponding platform

Macintosh,PowerPC

PowerPC Macintosh

Windows,32

Windows 95 or Windows NT


For forward compatibility and to allow for addition of values, it is better to test the platform by using contains.

When the movie plays back as a converted Java applet, this property's value indicates the browser and operating system in which the applet is playing. The property's value has the following syntax when the movie plays back as an applet:

Java javaVersion, browser, operatingSystem

The following are the possible values for this property's parameters:

javaVersion: 1.0 or 1.1

browser: IE, Netscape, or UnknownBrowser

operatingSystem: Macintosh, Windows, or UnknownOS

For example, if an applet is playing in Microsoft Internet Explorer with Java 1.1 in Windows, platform has the value Java 1.1, IE, Windows.

Example

This statement checks whether a projector was created for Windows 95 or Windows NT:

on exitFrame
	if the platform contains "Windows,32" then
		castLib("Win95 Art").name = "Interface"
	end if 
end

See also

runMode