# Adding numbers

**URL:** <https://forum.kirupa.com/t/adding-numbers/301616>\
**Category:** Uncategorized\
**Created:** [December 12, 2009, 6:19am UTC](https://forum.kirupa.com/t/adding-numbers/301616 "2009-12-12T06:19:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostik](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@kostik](https://forum.kirupa.com/u/kostik)\
**Post date:** [December 12, 2009, 6:19am UTC](https://forum.kirupa.com/t/adding-numbers/301616/1 "2009-12-12T06:19:19Z")

</div>

How do I add numbers in Actionscript 3?  
I have two dynamic texts[COLOR=Blue] totalscore.text = “3”;[/COLOR] and [COLOR=Blue]myscore.text = “2”;[/COLOR]  
I’m trying to add them like this [COLOR=Blue]totalscore.text += myscore.text; [/COLOR]And i get this answer [COLOR=Blue]32[/COLOR] instead of [COLOR=Blue]5[/COLOR] it just attaches them instead of adding. why?  
I also tried it like this [COLOR=Blue]  
var my\_score:Number = myscore.text;  
totalscore.text += my\_score;[/COLOR]  
but it still attaches them numbers together instead of adding.
