I have created an object called myObj.
How do I create a class that I can call that will assign properties to myObj such that
myObj = {foo:15, bar:"hello"}
…?
BTW, I do not want to just say
var myObj:Object = {foo:15, bar:"hello"}
…because in fact I am going to be creating a bunch of objects all having the same properties, and there will be many more such objects.