//*************************************
//Randomrange Function
//Function to get a range of random numbers
//*************************************
function randomRange(Min,Max){
return random(Max-Min+1)+Min;
}
then in your button put
code:
pressed=true
this.hide()
then make a script element that runs every 24 frames (assuming 12fps)
code:
if (pressed){
element ("TextButton 86").x=root.randomRange(0,400)
element ("TextButton 86").show()
pressed=false
}
yeh make two edit boxes and name, under variable, hit and clicked. Than in the button make a script saying hit++ (that will add 1 to hit everytime the button is clicked). Than make a "mouse" element and say under "mouse clicked" clicked++. That will add one to clicked everytime you click.
try opening the html file instead of the flash, I had some problems with that once. If you were already doing that, I suggest putting the movie file into a zip folder and posting it here for me to look at. Or maby someone else can help you.
uhh are you talking about the number adding? well one more thing to try, make the hitt++ and clicked++ into hit+=1 and clicked+=1. Are you sure you put the hit=0 and clicked=0 in the starting script after the random script? Well if that doesnt wokr pst the movie file again.