PDA

View Full Version : ** currentframe() **



The_Vulcan
October 13th, 2003, 06:30 PM
I have one frame, in that frame I have a movie "logo" it is 19 frames long, looping.

What I want it to do is, that when you mouse over it
(and it is at || gets to frame 15)
it stops.

The code I am trying will just stop the movie where it is at, even if it is not (on || at ) frame 15




onClipEvent (enterFrame) {

if (this.hitTest(_root._xmouse, _root._ymouse, false)) {

if (this._currentframe = 15) {
this.stop();}

}
}



any ideas please ?

claudio
October 13th, 2003, 06:38 PM
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false) && this._currentframe == 15) {
this.stop();
}
}

The_Vulcan
October 13th, 2003, 07:10 PM
Thanks again as always claudio....

would you believe that I tried that, except I had = 15 not ==15..

doh !

claudio
October 13th, 2003, 07:12 PM
well, that happens... :beam: