User Guide
652
Examples
This on prepareMovie handler turns the on streamStatus handler on when the movie starts:
on prepareMovie
tellStreamStatus(TRUE)
end
This statement determines the status of the stream status handler:
on mouseDown
put tellStreamStatus()
end
See also
on streamStatus
tellTarget()
Syntax
sprite(whichSprite).tellTarget("targetName")
sprite(whichSprite).endTellTarget()
Definition
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 (whic h ret urns t he
current frame) is affected by
tellTarget.
Examples
This command sets the movie clip as the target:
sprite(1).tellTarget("\myMovieClip")
This command stops the movie clip:
sprite(1).stop()
This command causes the movie clip to play:
sprite(1).play()
This command switches the focus back to the main Timeline:
sprite(1).endTellTarget()
This command stops the main movie:
sprite(1).stop()