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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -