I’m wondering, is it possible to instantiate instances of user classes in the same way as you can instantiate the Object class? For instance, assuming that Vector is a user imported class:
[AS]
// Creates 10 identical vectors and stores them in an object
var o1:Object = new Object()
for(var i = 0; i < 10; i++)
{
o1[“v”+i] = new Vector(100, 100)
}
[/AS]
And then, assuming the vector has propreties x and y:
[AS]
trace(o1.v0.x)// 100?
[/AS]
I’ve tried that syntax or similar, and it throws me a syntax error. Is there another way to word the same idea?