Buttons stop working

Hey everyone

This is my second post and I’m struggling with flash, so bear with me.

I setup a scrolling 360 view of a warehouse for a client, and you can see what I have so far here.

The problem is the buttons work just fine if you click them first, before touching the slider. But, after using the slider, the buttons stop working. This is gonna be hard to explain for me but I’ll try. I have a value being set that designates the speed of scroll when the buttons are pressed or the slider is moved. The value is set correctly when the buttons are clicked before the slider is touched, but once the slider is moved, the buttons stop setting the speed value. The slider continues to work fine, but the buttons don’t. Reload the movie, and the buttons will work again, but only until the slider is moved.

If you need code samples, let me know and I’ll paste it in here.

I hope someone can help…the deadline is approaching and I’m pulling my hair out on this one.

Thanks,
Dan

Ok, problem fixed…thanks for looking!

can you let us know how you fixed this so any other people with this problem can fix it too? :wink:

Sure…I’m sorry, I should have done this sooner…

I had this code for the slider:

dragger.onPress=function(){
this.startDrag(true,-52,0,52,0);
this.onEnterFrame=function(){
_global.ratio_=_Math.round(this._x);
}
}
dragger.onRelease=function()_{
stopDrag();
dragger._x_=_0;
_global.ratio_=_0;
}

Apparently the onEnterFrame within this code was looping forever and not letting my buttons perform the way they were supposed to. I was told to change the code to this:

dragger.onPress=function(){
this.startDrag(true,-52,0,52,0);
this.onEnterFrame=function(){
_global.ratio_=_Math.round(this._x);
}
}
dragger.onRelease=function()_{
stopDrag();
dragger._x_=_0;
_global.ratio_=_0;
delete this.onEnterFrame;
}

The ‘delete this.onEnterFrame;’ allowed the loop to stop when the user let go of the slider control, and everything worked perfect.