Hi Lars,
so far you have done this:
- saved the class from Prefab into the the default package of Away3D f10
in away3d.materials.utils.data
- in your project you have imported this class:
AwayConnector;
so far so good :)
now all you need to do is to instanciate the class
var connector:AwayConnector = new AwayConnector();
now pass the geometry you want to load in Prefab
connector.send(myObject3D);
myObject3D:Object3D type can be a Mesh or ObjectContainer3D with
Meshes in it...
to use it, before you compile the connection must be active
start Prefab3d, and select "import from Away connection"
then compile....
Let your swf run until Prefab tells you data is 100% loaded and
displays it.
Prefab will close the connection, you can then kill the swf.
Note that due to local connection limitation I needed to pass data in
chunks. thats why it can take a few seconds if your model is large
Let me know how it goes.
Fabrice
On Nov 8, 2009, at 7:45 PM, Lars Schwarz wrote:
hi guys,
i'm trying to use the away connector in prefab3d... i save the class
file and
imported it into my project file, simple as import
away3d.materials.utils.data.AwayConnector;
i'm not initiliasing it and anything else, just the import statement.
running prefab3d and choosing "import from away connection" the popup
says: connection active,
waiting for data, but when i compile my project (before and while the
popup is active) nothing happens.
i'm using flashcs4 as ide... on windows xp, latest prefab, latest air.
what am i missing?
thanks: lars