I have a slider that works so when you slide the bar it also displays a number in dynamic text field (btwn 0 -100) depending on where your drag bar is.
What I would like to happen is have a submit button, so when the user stops dragging, they then click the submit button and it reads the number in the dynamic text box and calculates whether they are over a certain number, equal to, or under a certain (say 50), then displays a particular movieclip based on that number. Anything over 50 display this MC, equal to 50 display this MC, under 50 display this MC.
What I currently have:
The dynamic text box is labled "score" and the text in the first root action frame is this:
this.onEnterFrame=function(){
score.text=mySlider.score;
if (Key.isDown(Key.ENTER)) mySlider.line._xscale=lineLength.text;
}
I have tried adding this code to a submit button with no success:
on (press) {
if (_root.score > 50)
setProperty("over50", _visible, "1");
My thought was to read the dynamic text box labeled score, then display a movieclip based on the score.
Any help would be greatly appreciated!
thanks
What I would like to happen is have a submit button, so when the user stops dragging, they then click the submit button and it reads the number in the dynamic text box and calculates whether they are over a certain number, equal to, or under a certain (say 50), then displays a particular movieclip based on that number. Anything over 50 display this MC, equal to 50 display this MC, under 50 display this MC.
What I currently have:
The dynamic text box is labled "score" and the text in the first root action frame is this:
this.onEnterFrame=function(){
score.text=mySlider.score;
if (Key.isDown(Key.ENTER)) mySlider.line._xscale=lineLength.text;
}
I have tried adding this code to a submit button with no success:
on (press) {
if (_root.score > 50)
setProperty("over50", _visible, "1");
My thought was to read the dynamic text box labeled score, then display a movieclip based on the score.
Any help would be greatly appreciated!
thanks