Hey.
I'm trying to make a script that holds an array of class names, and i'm trying to call it like this:
PHP Code:
this.classes = {"control"}
for (temp.curClass: this.classes)
{
this.join(temp.curClass);
(@ temp.curClass)::start();
}
It simply doesn't work, because I get this error:
Quote:
|
Originally Posted by RC
error: missing semicolon at line 6: (@ temp.curClass)::start();
error: unexpected token: :: at line 6: (@ temp.curClass)::start();
|
I've had this problem before. Is there any way to call a class through this method?
I appreciate it in advance.
-Hikaru