Uli
February 20th, 2004, 02:42 PM
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?
on (press) {
if (this._name.substr(0, 6) == "MyClip") {
MyID = this._name.substr(6, 6);
trace(MyID+10);
//result with MyClip5 : 510 }
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?
on (press) {
if (this._name.substr(0, 6) == "MyClip") {
MyID = this._name.substr(6, 6);
trace(MyID+10);
//result with MyClip5 : 510 }