Skip to main content
October 6, 2009
Answered

AS3.0 Slider to slide timeline is duplicating first frame. Why?

  • October 6, 2009
  • 2 replies
  • 1415 views

I have made a slider that I am having issues with. This slider is to control the timeline of a movie clip when dragged. My problem with this is that It seems to be duplicating the first frame. When I slide the slider to the right it will hit first tick and still display what is in frame 1 .. then on the next ticks it will continue with the rest of the timeline. Any Ideas how to prevent / over come my slider from doing this with the first frame? I have dificulty explaining so I have atached an example.

Thanks In advance.

This topic has been closed for replies.
Correct answer Ned Murphy

Try setting an s.minimum value of 1.

2 replies

October 6, 2009

I have tried to upload the .fla but server wont let me.

here is the code I am using for the slider. It controls numbers_mc that contains frames 1-16 all numbered 1-16 These numbers will be replaced later with images. Thanks


s.setSize(240,1);
s.maximum=numbers_mc.totalFrames;
s.liveDragging=true;

s.addEventListener(Event.CHANGE,updatemc);

function updatemc(e:Event)
{
    numbers_mc.gotoAndStop(s.value);
}

Ned Murphy
Ned MurphyCorrect answer
Legend
October 6, 2009

Try setting an s.minimum value of 1.

October 6, 2009

could you give me a suggestion on how i would write that. I tried a few things but got errors. I am not sure of its syntax.  Thank you

October 6, 2009

.