I had the same problem. If you wanna use Away3dLite 1.0.0 just change:
sortType:SortType.CENTER => sortType:MeshSortType.CENTER and delete or comment: _faceLengths.push(3); => // _faceLengths.push(3); Or you can update the Away3dLite from here and it will work as it is: http://away3d.googlecode.com/svn/branches/lite/libs/away3dlite/ On Apr 19, 10:55 pm, Dimi <[email protected]> wrote: > Hi all. > > I have exported a very simple cube to .3ds and imported this one to > Prefab. > since i just want to test the feature i export it to a away3dlite AS3 > Class. > > The AS is created looks fine so far and i now want to import it to my > stage. > > A note is that i do not have any problem to view the added cube6 and > Sphere and cylinder > that is already within the away3dlite folders. > > When i import the test cube i made and run the program it throws the > error below. > > 1120: Access of undefined property SortType. > 1120: Access of undefined property _faceLengths. > > The sorttype i can find in the exported AS3 as > > objs.obj0 = {name:"cube", transform:m0, container:-1, > bothsides:false, material:null, sortType:SortType.CENTER}; > > the _facelenght i can find as > > _indices.push(index, index+1, index+2); > _faceLengths.push(3); > index+=3; > > When i exported the object from prefab i did not do anything to the > model. i simply imported a .3ds file and exported it to a AS3 class. > > Is this something i do wrong? > > i treat the as3 files as i do with the included cube6, sphere and > cylinder > > I have a view a scene a camera. > > i call for the AS3 file that is named CubeTest with > > var test:Cubetest; > > test = new Cubetest(); > view.scene.addChild(test); > > If i do the same with the included Sphere > > _Sphere = new Sphere(); > view.scene.addChild(_Sphere); > > It works. > > Is there something more i need to do in Prefab? > i tried to export it with all the different option in prefab. > > If you want to see the AS3 file please tell me so i can send it to you > or if you like me to post it right here. > > the program used to export it to .3ds have been 3dsmax and also tried > in 3dstudio if it makes a difference, and it was just a cube. > > Sorry for my beginner question and to take up the hard workers time. > but i figure if i have the problem maybe someone else has it to and > that it may be a bug? > > Many thanx > Dimi > > -- > Subscription > settings:http://groups.google.com/group/away3d-dev/subscribe?hl=en
