//randomizeX
This is a randomizer script once the function has been called it randomly selects a value between 1-3 then runs an if statement to detect which variable has been generated then calls the action in this case outputs it into a trace command.
//randomizeXfunction ranX(){
ranXmath = Math.round((Math.random()*2)+1);
trace(ranXmath);
if(ranXmath == '1'){
trace('ran1 selected')
}
if(ranXmath == '2'){
trace('ran2 selected')
}
if(ranXmath == '3'){
trace('ran3 selected')
}
}
ranX();
//
stop();
Labels: action script, adobe, flash, function, macromedia, Math.random, random, randomize
1 Comments:
kobe sneakers
cheap mlb jerseys
lebron 10
ralph lauren uk
nike kd 11
golden goose sneakers
jordan shoes
cheap jordans
christian louboutin
nike sneakers for men
Post a Comment
Subscribe to Post Comments [Atom]
<< Home