just uploaded a fix and made a test with embed & custom path
should work now.

var awData:AWData = new AWData();
//awData.pathToSources = "deeper/images/";  in case the default dir "images" is 
not next to swf.

var object3d:Object3D = awData.parseGeometry(new AWDObject());
this.view.scene.addChild(object3d);

Fabrice


On Apr 28, 2010, at 6:09 PM, Sylvain Godbert wrote:

> Hi,
> 
> I was wondering whether there is a way to embed an awd object (with
> textures) into an application.
> 
> I tried this :
> 
> [Embed(source="assets/objet.awd", mimeType="application/octet-
> stream")]
> private var AWDObject:Class;
> 
> var awData:AWData = new AWData();
> var model:ObjectContainer3D = awData.parseGeometry(new AWDObject()) as
> ObjectContainer3D;
> 
> _View.scene.addChild(model);
> 
> This does work but only load the geometry and not the textures. Is
> there an elegant way to get the textures as well ?
> 
> Sylvain

Reply via email to