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

_currentframe problem

Status
Not open for further replies.

alexxxis

Programmer
Sep 21, 2006
38
RO
Hi. Here`s my problem. main : 2 layers, one with lots of different keyframes, the second one with a movie clip containing step forward and backward buttons.

on (release) {_root.gotoAndStop(_currentframe + 1);

}

this is the action the step forward button has on it.
the problem is that 1. it only works once, the second time won`t move at all 2. it only gets my first frame as the _currentframe, so whatever the frame i stopped the movie, if i click step forward, it will move from frame one [although the movie was stopped at frame ... 15 let`s say ...] to frame two.
_currentframe needs somehow to be refreshed ?
might sound weird ... i`m gonna keep trying some stuff, but i thought i`d ask first ... maybe i`m missing something.
 
got it .. i`m a moron :p it was _root._currentframe ... he was gettin` the current frame from the step forward/back movie ... not from the root. next time i`ll think more :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top