Hi and thank you so much for the answere. I must say im very impressed
that you guys answere so fast when i know you must have so much to do.
And i asume its enoying to answere people like me that is so new to
all this. I just accedently started with it as project at work that is
about to release a whole new product series. And i am trying to make
all the product to 3Dmodels and i hope in a later state when someone
mouseover parts of the object i can add some popup or something that
explains what it is and what it do.
If it will be good i will sure give credits,  but im affraid my
knowledge is not enough to make it superb :)
Anyway that was offtopic.

I am at work now and i will try what Tain said when i Come home.

Fabrice3D: I use the latest version as you already notice Version
2.4.0 / 3.4.0 as found on the download site.
I have not thinked about the SVN, i simply downloaded the latest zip
on the download section.
i can see that there is a lib on the svn /tags/3.4.2 lib/src but that
one is for Away3d and not Away3Dlight so i am using the latest
version.


What i do is to take the created as3 file and put it in the away3dlite
primitives folder where all the other objects are.

So i have a view and a camera, all made after tutorials and the help
files.
So i am using the included scene in view3D

i also have a container as i remember "var
container:ObjectContainer3D"

container = new ObjectContainer3D();

//After i import the objects

cube = new Cube6();
sphere = new Sphere();
cylinder = new Cylinder()

// i use buttons to add the objects to stage, in the buttons onlick
function i have this

container.addChild(cube);

// this will add the cube to the stage, the cube i add are the cube
that already exist in the primitive folder as an example and it works
great so i asume so far the code are good.

So i now have my prefab created actionscript that are in the same
folder as the example primitives.
So the code are the same as the others.

First i import the actionscript

import away3Dlite.primitives.TestCube; // TestCube are the
actionscript created by prefab.

Secondly create the variable

var testcube:TestCube

I create the object

testcube = new testCube();

And with a button i add it

container.addChild(testcube);

When i now run it i get the error above.

So i use the exact same code as i use for the included primitives that
works i.e. cube and sphere
I may have used some bad refferences above since i do not have the
project infront of me.

Hope this clear some lights and again i appologize for my bad
vocabolary caused by being a inexperienced flash user.

Br
Dimi

ps: I could not find a thread about my issue when i searched so if
this is a double post i am sorry.
and i am looking forward to get hold of that documentation/tutorials
you guys are working on :) i think with 3daway and prefab only my
imagination will stop me in the future :P


-- 
Subscription settings: http://groups.google.com/group/away3d-dev/subscribe?hl=en

Reply via email to