views:

1537

answers:

2

What's the sanest way to achieve something along the lines of this.gotoAndStop(this._currentframe)?

What I want is that Flash re-loads the current frame as if I was using gotoAndStop (which does nothing if it is given the current frame as target frame).

+1  A: 

I don't think I understand why you would want to do this, but what if you go to the frame before (or after) the current frame and then go back?

var current:int = _currentFrame;
gotoAndStop(current - 1);
gotoAndStop(current);

I haven't done AS2 in quite a while so I'm not at all sure what, if anything, the above code produces.

macke
A: 

You can do it using a movieclip class method on the frame in question

prevFrame()