play from currentFrame and stop on targeted frames in animate CC (html5)
I was struggling with this code and still not find correct way of doing this. so posted here.
All frame are in my nested movieclip (mc_1). now I want to go on target frame by clicking on the button inside movieclip from the currentFrame as shown in below image.
here is my code:
this.stop();
var a = this;
a.mc_1.t.addEventListener("click",test_1)
function test_1(){
if(a.mc_1.currentFrame > 0){
var tds = 29 +(a.mc_1.currentFrame-a.mc_1.currentFrame); //wanted to get targeted frame number
a.stage_freezeobject.gotoAndStop(tds); \\ this will directily jump onto frame29 but I wanted to play from current frame and stop on 29.
}
any help will much appreciate.
below are 2 examples of two different currentFrames and play direction whereas 1 direction is normal play and 2nd direction is reverse play. it will be good if both ways are possible, if not, then 1 of this will fullfill my need.

