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()
.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...