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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I disable the mouse rollover after a button has been clicked? 3

Status
Not open for further replies.

ColonelBlue

Technical User
Jun 24, 2004
110
0
0
US
I have a movie clip that when rolled over displays what the button is, however when this button is clicked I would like to stop any rollovers from being triggered.

Thanks in advance.
 
Hello :)

This is on the button.

Code:
on (rollOver) {
	_root.captions1.gotoAndPlay(2);
	
	
}
on (rollOut) {
	_root.captions1.gotoAndPlay(1;
	
}
on (press) {
	loadMovie("WIFI7.swf", "_root.mytarget}
 
just disable the button by doing this:

Code:
on (press) {
    loadMove("WIFI7.swf", "_root.mytarget");
    (path).myButton.enabled = false;
}

however, you musn't forget to enable the button back.
 
Oh I'm sorry.
The instance name is community1
The path is _root.community1

Thanks again.
 
Weird, didn't even see Kijori's reply.
Thank you both!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top