Lingo Dictionary > S > on startMovie

 

on startMovie

Syntax

on startMovie
	statement(s)
end

Description

System message and event handler; contains statements that run just before the playback head enters the first frame of the movie. The startMovie event occurs after the prepareFrame event and before the enterFrame event.

An on startMovie handler is a good place to put Lingo that initializes sprites in the first frame of the movie.

Example

This handler makes sprites invisible when the movie starts:

on startMovie 
	repeat with counter = 10 to 50 
		sprite(counter).visible = 0
	end repeat 
end startMovie

See also

on prepareMovie