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

button problem

Status
Not open for further replies.

jazz88

Technical User
Feb 2, 2005
153
0
0
US
I have several keyfarmes. Each of the keyframes contain a movie clip. They are controlled by prev and next buttons. Code on the next buttons is:

on (release, releaseOutside){
if (this._currentframe == 1) {
gotoAndStop (this._totalframes);
} else {
prevFrame ();
}
}
and for the prev button:

on (release, releaseOutside) {
if (this._currentframe == 1) {
gotoAndStop(this._totalframes);
} else {
prevFrame();
}
}

The next button works fine but prev button works only on the third click. Any idea why ?
Thanks.
 
I figured out myself where the problem was. But thanks for response, I appreciate it.
 
There are choices when using buttons and frames. When adding actions to buttons there is a dropdown box on the second line on the right side of the actions panel. There you will find choices like: go to next frame, go to previous frame, ect...just select either and the code is written for you. You can publis your file and open it with notepad and see the code actionscript wrote for you.

Go..gomango
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top