# How do you load several instances of a symbol into one class at once

**URL:** <https://forum.kirupa.com/t/how-do-you-load-several-instances-of-a-symbol-into-one-class-at-once/322228>\
**Category:** Uncategorized\
**Created:** [May 15, 2011, 2:18am UTC](https://forum.kirupa.com/t/how-do-you-load-several-instances-of-a-symbol-into-one-class-at-once/322228 "2011-05-15T02:18:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OhMyJosh](https://avatars.discourse-cdn.com/v4/letter/o/46a35a/32.png) [@OhMyJosh](https://forum.kirupa.com/u/OhMyJosh)\
**Post date:** [May 15, 2011, 2:18am UTC](https://forum.kirupa.com/t/how-do-you-load-several-instances-of-a-symbol-into-one-class-at-once/322228/1 "2011-05-15T02:18:22Z")

</div>

I’m basically making a platforming game, and the platforms are exported into one class. There are currently 2 instances of the platform symbol in a movieclip which is the level. How would I load up the platforms class where it loads all the instances of the platform and load them into an array during the process?

This is the constructor of the class:

public function PlatformTest()  
{  
\_top = GetTop();  
\_bottom = GetBottom();  
\_left = GetLeft();  
\_right = GetRight();  
\_platformList[\_getSet.ListCntr] = this;  
\_getSet.ListCntr++;  
}

I have private functions to get the x and y values for collision pruposes, and it loads into an array and is incremented by one. Is this the correct way of doing it?
