Can any clever nuts figure out why this actionscript is not working?
Code:
//numRange, lowest are all variables of input txtboxes 3 frames before this AS frame
var rad1 = random(numRange)+lowest;
// rad1 is another dynamic textbox set on THIS frame
// and on the next frame it is previousFrame();
This is my first try at loading random command using a variable and several imputs.
Thanks Guys...
When you actually know what "OMG I have so much homework!" means, you won't want to be me.
Xrave
var numRange = 5;
var lowest = 15;
var rad1 = random(numRange) + lowest;
yea something like that but numRange and lowest are user defined, this means the user gets to type it in, press a button to enter the selection frame - then a countdown starts, and when the countdown reaches 0 the computer sends the final random number to frame 10 which stops the random generator.
So I made it to be user Defined but ..
When you actually know what "OMG I have so much homework!" means, you won't want to be me.
Xrave
first of all i think you cant put the number just like that
rad1.text = toString(Math.random(numRange) + lowest);
try sending us the fla to see what you really mean
OK mate, i only changed the random to Math.random
thats how you use random func in flash
and lowered the frame rate so u see whats happening
I hope its the way you want