Chaotic Horde

Flash Applications and Games Development

Today,  

I got 2 classes one it’s a superclass and contains a static variable. The other it’s a subclass
(this is just an experimentation…)

While compiled, I got a msg error in subclass saying: the class or interface OOtest could NOT be loaded. I can’t calling a static variable of the mother class.

ex:
class OOSubtest extends OOtest {

public function OOSubtest() {
trace("test: " +OOtest.test);
}
}

class OOtest {
public static var test = "Aquarium";
}


(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development |

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.