# Converting into an as2 class

**URL:** <https://forum.kirupa.com/t/converting-into-an-as2-class/163804>\
**Category:** flash\
**Created:** [September 26, 2005, 1:07pm UTC](https://forum.kirupa.com/t/converting-into-an-as2-class/163804 "2005-09-26T13:07:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jadd](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jadd](https://forum.kirupa.com/u/jadd)\
**Post date:** [September 26, 2005, 1:07pm UTC](https://forum.kirupa.com/t/converting-into-an-as2-class/163804/1 "2005-09-26T13:07:32Z")

</div>

Hi everybody,  
i’m trying to convert an existing souce into an as2 class (the purpose is learning some more indeed). The conversion is almost finished, i belive, but now i can’t go further forward, I’ve something undefined (the object \_cameraView.targ in the function “selectObject” in the Space3D class). The original code was from a great 3d tutorial at this ([http://www.kirupa.com/developer/actionscript/3dindex.htm](http://www.kirupa.com/developer/actionscript/3dindex.htm)).  
The zip file include: 01.fla my modified and working source with no class; 02.fla the new one which use the class Space3D.  
I would like to know what’s wrong. If someone could take a look at this attached source. Thanks.
