# Class in array with in a class

**URL:** <https://forum.kirupa.com/t/class-in-array-with-in-a-class/278342>\
**Category:** Uncategorized\
**Created:** [December 27, 2008, 11:27pm UTC](https://forum.kirupa.com/t/class-in-array-with-in-a-class/278342 "2008-12-27T23:27:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkNighter](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@DarkNighter](https://forum.kirupa.com/u/DarkNighter)\
**Post date:** [December 27, 2008, 11:27pm UTC](https://forum.kirupa.com/t/class-in-array-with-in-a-class/278342/1 "2008-12-27T23:27:28Z")

</div>

I am trying to figure out the class seem not working out some reason. I building a class and added array to it. once the array is setup I tried to add class in the the array. It didn’t work when i try it to trace the array class part.

```auto

model.as
public class model {
			public var box:Array = new Array();
			public function model() {
				
			}
		}
		
boxcollision.as
public class boxcollision {
			public var x:Number = 0;
			public var y:Number = 0;
			public var z:Number = 0;

			public function boxcollision() {
				
			}
		}
		
test area
		var testmodel:model = new model();
		var box:boxcollision = new boxcollision();
		testmodel.box.push(box)

```
