Hi all,

Still perplexed (big surprise, huh) ...

Simply trying to "cast" a bitmap onto a mesh but get error. Any ideas
why?

I have an embedded BitmapFile:
[Embed(source="assetts/teapot_1.jpg")]public var texture3:Class;

on loader success:
obj1object3d = e.loader.handle;
obj1mesh = (obj1object3d as ObjectContainer3D).children[0];

applying this new material to the mesh (which has been verified to be
a mesh) pops error:
obj1mesh.material = new BitmapMaterial( Cast.bitmap( new this[texture3]
() as Bitmap ));

ReferenceError: Error #1069: Property [class Test67_texture3] not
found on Test67 and there is no default value.

Do I have to have an onloadersuccess for embedding?? I guess next
course of action is to try AS3Exporter ... not sure what else to do ..

http://groups.google.com/group/away3d-dev/web/Test67.as

Thanks,

Joseph

Reply via email to