EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 562

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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();