I have created a flash slider that lets you control the flash movie. I am able to go to a particular frame when I move the slider using startDrag. But inspite of using Movie.gotoAndPlay, it just stops at the frame. It behaves as a gotoAndStop event. The code is
this.onEnterFrame=function(){
ratio.text=mySlider.ratio;
if (ratio.text == 1 )
{ this.gotoAndPlay(1);
}
if (ratio.text == 2 )
{ this.gotoAndPlay(11);
}
if (ratio.text == 3 )
{ this.gotoAndPlay(21);
}
if (ratio.text == 4 )
{ this.gotoAndPlay(30);
}
if (ratio.text == 5 )
{ this.gotoAndPlay(40);
}
if (ratio.text == 6 )
{ this.gotoAndPlay(50);
}
}
Where am I going wrong. Any help would be appreciated.