User Guide

562 Chapter 12: Methods
Example
This command sets the movie clip as the target:
-- Lingo syntax
sprite(1).tellTarget("\myMovieClip")
// JavaScript syntax
sprite(1).tellTarget("\myMovieClip");
This command stops the movie clip:
-- Lingo syntax
sprite(1).stop()
// JavaScript syntax
sprite(1).stop();
This command causes the movie clip to play:
-- Lingo syntax
sprite(1).play()
// JavaScript syntax
sprite(1).play();
This command switches the focus back to the main Timeline:
-- Lingo syntax
sprite(1).endTellTarget()
// JavaScript syntax
sprite(1).endTellTarget();
This command stops the main movie:
-- Lingo syntax
sprite(1).stop()
// JavaScript syntax
sprite(1).stop();