Director Help

Player

Represents the core playback engine used to manage and execute the authoring environment, movies in a window (MIAWs), projectors, and Shockwave Player.

The Player object provides access to all of the movies and windows that it is managing, in addition to any Xtra extensions that are available.

You can create a reference to the Player object by using the top level _player property.

  • Assign _player to a variable.
    -- Lingo syntax
    objPlayer = _player
    
    // JavaScript syntax
    var objPlayer = _player;
    
    
  • Use the _player property directly.
    -- Lingo syntax
    _player.alert("The movie has ended.")
    
    // JavaScript syntax
    _player.alert("The movie has ended.");
    
    

Method summary for the Player object

Method 

alert()

getPref()

appMinimize()

halt()

cursor()

open() (Player)

externalParamName()

quit()

externalParamValue()

setPref()

flushInputEvents()

windowPresent()

Property summary for the Player object

Property 

activeCastLib

netPresent

activeWindow

netThrottleTicks

alertHook

organizationName

applicationName

productName

applicationPath

productVersion

currentSpriteNum

safePlayer

debugPlaybackEnabled

scriptingXtraList

digitalVideoTimeScale

searchCurrentFolder

disableImagingTransformation

searchPathList

emulateMultibuttonMouse

serialNumber

externalParamCount

sound (Player)

frontWindow

switchColorDepth

inlineImeEnabled

toolXtraList

itemDelimiter

transitionXtraList

lastClick

userName

lastEvent

window

lastKey

xtra

lastRoll

xtraList (Player)

mediaXtraList

 

See also

_player, Cast Library, Member, Movie, Sprite, Window