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]