timer - combine or add values in Action Script 2.0? -


i'm new , trying add values using either arrays of functions combine values keep showing nan.

function combine(a, b, c):number{   return + b + c;   } var total = combine(mytimer1, mytimer2, mytimer3);   totaltimers.text = total; 

without seeing part of code generates mytimer1, mytimer2 , mytimer3 can't sure why happening, seems variables either not of type number or have values of null or undefined.

i recommend starting tracing out values of mytimer1, mytimer2 , mytimer3 (or inspecting them in debugger) see of these causing problem.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -