Hello!
I have searched around a while, but couldn’t find what i’m looking for.
I have created a class: Persons
when I make an instance of this class I want to get the name of this instance and save it as a static var (Array). I want to do this so that i later can call a static function to all instances.
Like this:
var noen: Persons=new Persons(“John”);
var neon: Persons=new Persons(“Mike”);
var neonnoe: Persons=new Persons(“Karl”);
Persons.jumpAll();
And then everybody jumps. (No mater what I called the instances.)
Does anybody know how to do this?
Thanks for your attention.
Mr Amod