I found this as well in my version (2.2 is the latest, no?). At any
rate, I came up with a work around, but I'll keep messing with it.
Thanks!
On Dec 3, 4:35 pm, Li <[EMAIL PROTECTED]> wrote:
> That error is saying that the method addMaterial() doesnt exist in
> BitmapMaterialContainer. I looked in my latest away3d version and I found
> this:
>
> public function addMaterial(material:ILayerMaterial):void
> {
> material.addOnMaterialUpdate(onMaterialUpdate);
> materials.push(material);
>
> _faceDirty = true;
> }
>
> meaning... you probably have an older version. If you think that might be
> the case, updating to the latest away3d revision should solve your problem.
>
> =)
>
> On Wed, Dec 3, 2008 at 7:20 PM, JoeyMac <[EMAIL PROTECTED]> wrote:
>
> > I have a BitmapMaterialContainer and I don't seem to be able to use
> > the addMaterial() method. When I try, to add a material I get the
> > following error:
>
> > 1061: Call to a possibly undefined method addMaterial through a
> > reference with static type away3d.materials:BitmapMaterialContainer.