Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question 2

Status
Not open for further replies.

fjp476

Technical User
Dec 28, 2001
113
US
Hi, can some one please tell me how to make a simple pause button? Thanks in advance! Cheers~Frank
 
Something like:

Code:
on(release){
	if(stopped == 0){
	_root.stop();
	stopped = 1;
	}
	else if(stopped == 1){
	_root.play();
	stopped = 0;
	}
}
frozenpeas
 
Thanks frozenpeas, I'll try it. Cheers~Frank
 
I copied and pasted it but it doesn't seem to work, do I need to alter it in any way? Thanks for the help. Cheers~Frank
 
Can you post an fla? I have no idea where you are copying/pasting, etc. frozenpeas
 
On a first keyframe in your movie (better if on an actions only layer), simply defined the variable with:

stopped = false;

Or...

stopped = 0; Regards,

oldman3.gif
 
Thanks oldnewbie! That did the trick, and thanks again frozenpeas! Cheers~Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top