What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
I need to allow creating a particular class only from allowed classes.
public class Class1
public function Class1()
var class3:Class3 = new Class3(); //Error
public class Class2
public function Class2()
var class3:Class3 = new Class3(); //No Error
Any efficient way to do this?
Does the class which you are attempting to initialise know which classes are allowed to initialise it? If so, you could just check against a list and chuck an error if they don’t match.
Although there’s probably a more clever solution, as others have already suggested.
> *Originally posted by **[Drakim](/forums/4/topics/361834?page=1#posts-7468676):***
> Make the Class3 constructor take a password parameter and have it throw an error if the password isn’t correct. Don’t tell the password to anybody.
But that could be bruteforced.
How about a GUID as a password?