# Hmm... More class trouble

**URL:** <https://forum.kirupa.com/t/hmm-more-class-trouble/217109>\
**Category:** flash\
**Created:** [February 23, 2007, 3:55am UTC](https://forum.kirupa.com/t/hmm-more-class-trouble/217109 "2007-02-23T03:55:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nich](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@Nich](https://forum.kirupa.com/u/Nich)\
**Post date:** [February 23, 2007, 3:55am UTC](https://forum.kirupa.com/t/hmm-more-class-trouble/217109/1 "2007-02-23T03:55:32Z")

</div>

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?
