What logic operator to use, as3?
Posted
by VideoDnd
on Stack Overflow
See other posts from Stack Overflow
or by VideoDnd
Published on 2010-05-03T21:00:24Z
Indexed on
2010/05/03
21:08 UTC
Read the original article
Hit count: 321
What operator or expression can I use that will fire on every number, including zero?
I want a logic operator that will fire with ever number it receives. My animations pause at zero.
This skips on zero
if (numberThing> 0);
This skips on 9
if (numberThing>> 0);
This jitters 'fires quickly and goes back on count'
if (numberThing== 0);
EXPLANATION
I'm catching split string values in a logic
function, and feeding them to a series of
IF, ELSE IF statements. I'm using this with a timer, so I can measure
the discrepency.
CODE
• I GET VALUES FROM TIMER
• STRING GOES TO TEXTFIELD 'substr'
• NUMBER TRIGGERS TWEENS 'parseInt'
• Goes to series of IF and ELSE IF statements
© Stack Overflow or respective owner