MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 534

Director scripting reference
Table of Contents

Advertisement

Example
This handler queues and plays the cast member introMusic, starting at its 3-second point, with a
loop repeated 5 times from the 8-second point to the 8.9-second point, and stopping at the 10-
second point.
-- Lingo syntax
on playMusic
sound(2).queue([#member:member("introMusic"), #startTime:3000, \
#endTime:10000, #loopCount:5, #loopStartTime:8000, #loopEndTime:8900])
sound(2).play()
end playMusic
// JavaScript syntax
function playMusic() {
sound(2).queue(propList("member",member("introMusic"),
"startTime",3000, "endTime",10000, "loopCount",5, "loopStartTime",8000,
"loopEndTime",8900));
sound(2).play();
}
See also
endTime, getPlayList(), loopCount, loopEndTime, loopStartTime, Member, member,
preLoadTime, queue(),
setPosition()
Usage
-- Lingo syntax
fileioObjRef.setPosition(intPosition)
// JavaScript syntax
fileioObjRef.setPosition(intPosition);
Description
Fileio method; Sets the position of a file.
Parameters
Required. An integer that specifies the new position of the file.
intPosition
See also
Fileio
setPref()
Usage
-- Lingo syntax
_player.setPref(stringPrefName, prefString)
// JavaScript syntax
_player.setPref(stringPrefName, prefString);
Description
Player method; writes a specified string to a specified file on the computer's local disk. The file is
a standard text file.
534
Chapter 12: Methods
Sound
Channel,
startTime

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents