# DrawGraphicsData

**URL:** <https://forum.kirupa.com/t/drawgraphicsdata/301710>\
**Category:** flash\
**Created:** [December 14, 2009, 4:29pm UTC](https://forum.kirupa.com/t/drawgraphicsdata/301710 "2009-12-14T16:29:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenBart](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Post date:** [December 14, 2009, 4:29pm UTC](https://forum.kirupa.com/t/drawgraphicsdata/301710/1 "2009-12-14T16:29:33Z")

</div>

I’m trying to get my head into 3d space and found a cool example done by Kris Temmerman at

[http://www.neuroproductions.be/experiments/basic-3d-shading-test/](http://www.neuroproductions.be/experiments/basic-3d-shading-test/)

I can’t get it to run. The only thing that seemed to be missing is Point3d so I made a class.

```auto
package
{
	public class Point3D
	{
		public var x:Number
		public var y:Number;
		public var z:Number;
		
		public function Point3D(x, y, z):void
		{
			x=this.x;
			y=this.y;
			z=this.z;
		}
	}
	
}

```

When I run the thing it only shows the sun. I also noticed that tri.color is always equal to zero.

Anyone have any insight into why this isn’t working for me? I’m running this in Flash CS4 and I’m not getting any errors.

Thanks in advanced for any hints!
