According to [this][1] you have to use the virtual keyword, like
class Animal
{
virtual static var desc : String = "I'm an animal";
}
class Bird extends Animal
{
static var desc : String = "I'm a bird";
}
should work, but I'm not too sure about the connection between static and virtual stuff... Been writing in C# from beginnig ;)
[1]: http://forum.unity3d.com/threads/56738-javascript-and-polymorphism
↧