User Guide
getPref() 341
// JavaScript syntax
function playMusic() {
sound(2).queue(member("Chimes"));
sound(2).queue(propList("member",member("introMusic"), "startTime",3000,
"endTime",10000, "loopCount",5, "loopStartTime",8000, "loopEndTime",8900));
put(sound(2).getPlayList());
sound(2).play();
}
See also
endTime, loopCount, loopEndTime, loopStartTime, Member, member, preLoadTime,
queue(), setPlayList(), Sound Channel, startTime
getPosition()
Usage
-- Lingo syntax
fileioObjRef.getPosition()
// JavaScript syntax
fileioObjRef.getPosition();
Description
Fileio method; Returns the position of a file.
Parameters
None.
See also
Fileio
getPref()
Usage
-- Lingo syntax
_player.getPref(stringPrefName)
// JavaScript syntax
_player.getPref(stringPrefName);
Description
Player method; retrieves the content of the specified file.
When you use this method, replace stringPrefName with the name of a file created by
the
setPref() method. If no such file exists, getPref() returns VOID (Lingo) or null
(JavaScript syntax).
The filename used for
stringPrefName must be a valid filename only, not a full path; Director
supplies the path. The path to the file is handled by Director. The only valid file extensions for
stringPrefName1 are .txt and .htm; any other extension is rejected.
Do not use this method to access read-only or locked media.
Note: In a browser, data written by setPref() is not private. Any movie with Shockwave content can
read this information and upload it to a server. Confidential information should not be stored using
setPref().