# Integer problems, please help

**URL:** <https://forum.kirupa.com/t/integer-problems-please-help/225896>\
**Category:** flash\
**Created:** [May 16, 2007, 3:14pm UTC](https://forum.kirupa.com/t/integer-problems-please-help/225896 "2007-05-16T15:14:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.kirupa.com/u/fabrice)\
**Post date:** [May 16, 2007, 3:14pm UTC](https://forum.kirupa.com/t/integer-problems-please-help/225896/1 "2007-05-16T15:14:12Z")

</div>

Hi all,  
I am loading up a variable into flash from a .txt file. everything is fine but but I can’t find a way to have the variable showing up as an integer (I need to use that number with a switch statement afterwards). I’ve been tweeking it in every single way I can think of int(variable), eval(variable), parseInt, etc. Nothing does it.  
Please help.  
Thanks  
Fabrice
