![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 561](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516561.webp)
tellTarget()
561
Example
This
on prepareMovie
handler turns the
on streamStatus
handler on when the movie starts:
-- Lingo syntax
on prepareMovie
tellStreamStatus(TRUE)
end
// JavaScript syntax
function prepareMovie() {
tellStreamStatus(TRUE);
}
This statement determines the status of the stream status handler:
-- Lingo syntax
on mouseDown
put tellStreamStatus()
end
// JavaScript syntax
function mouseDown() {
put(tellStreamStatus());
}
See also
on streamStatus
tellTarget()
Usage
-- Lingo syntax
spriteObjRef
.tellTarget(
targetName
)
// JavaScript syntax
spriteObjRef
.tellTarget(
targetName
);
Description
Command; equivalent to the Flash
beginTellTarget
and
endTellTarget
methods. The
tellTarget()
command allows the user to set a target Timeline on which subsequent sprite
commands will act. When the target is set to a Flash movie clip or a level containing a loaded
Flash movie, certain commands act on the targeted components, rather than on the main
Timeline. To switch focus back to the main Timeline, call
endTellTarget()
.
The only valid argument for
tellTarget
is the target name. There is no valid argument for
endTellTarget
.
The Flash sprite functions that are affected by
tellTarget
are
stop
,
play
,
getProperty
,
setProperty
,
gotoFrame
,
call(frame)
, and
find(label)
. In addition, the sprite property
frame
(which returns the current frame) is affected by
tellTarget
.
Parameters
targetName
Required. Specifies the target name.
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...