# (FMX) variable pb

**URL:** <https://forum.kirupa.com/t/fmx-variable-pb/43296>\
**Category:** flash\
**Created:** [February 20, 2004, 7:42pm UTC](https://forum.kirupa.com/t/fmx-variable-pb/43296 "2004-02-20T19:42:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [February 20, 2004, 7:42pm UTC](https://forum.kirupa.com/t/fmx-variable-pb/43296/1 "2004-02-20T19:42:46Z")

</div>

Hello,

I’m checking for the name of the parent movie clip which is something like MyClip2 or MyClip3 …  
when i trace the variable MyID, it displays the right number but  
when i try to do basic operation on it, it acts like a string not a number… how can i solve this pb?

[AS]  
on (press) {  
if (this.\_name.substr(0, 6) == “MyClip”) {  
MyID = this.\_name.substr(6, 6);  
trace(MyID+10);  
//result with MyClip5 : 510 }  
[/AS]
