246
Chapter 12: Methods
breakLoop()
Usage
-- Lingo syntax
soundChannelObjRef
.breakLoop()
// JavaScript syntax
soundChannelObjRef
.breakLoop();
Description
Sound Channel method; causes the currently looping sound in channel
soundChannelObjRef
to
stop looping and play through to its
endTime
.
If there is no current loop, this method has no effect.
Parameters
None.
Example
This handler causes the background music looping in sound channel 2 to stop looping and play
through to its end:
-- Lingo syntax
on continueBackgroundMusic
sound(2).breakLoop()
end
// JavaScript syntax
function continueBackgroundMusic() {
sound(2).breakLoop();
}
See also
endTime
,
Sound Channel
browserName()
Usage
browserName
pathName
browserName()
browserName(#enabled,
trueOrFalse
)
Description
System property, command, and function; specifies the path or location of the browser. You can
use the FileIO Xtra to display a dialog box that allows the user to search for a browser. The
displayOpen()
method of the FileIO Xtra is useful for displaying an Open dialog box.
The form
browserName()
returns the name of the currently specified browser. Placing a
pathname, like one found using the FileIO Xtra, as an argument in the form
browserName(fullPathToApplication)
allows the property to be set. The form
browserName(#enabled,
trueOrFalse
)
determines whether the specified browser launches
automatically when the
goToNetPage
command is issued.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...