sorry claudiul25, we can't debug what you're trying to do without more
information. try breaking things down to a very simple class that
illustrates the error, then send it over and we can take a look

cheers

Rob

On Wed, Oct 14, 2009 at 8:39 AM, claudiul25 <[email protected]> wrote:

>
> i'm trying this :
>
> function initMaterials():void
> {
>        skyboxmaterial = new BitmapMaterial( Cast.bitmap(aster) );
> }
> ...
> skybox = new Skybox6( skyboxmaterial );
> skybox.quarterFaces();
> scene.addChild( skybox );
>
> and i' getting this :
>
> ArgumentError: Error #2015: Invalid BitmapData.
>        at flash.display::BitmapData()
>        at aster()
>        at away3d.core.utils::Cast$/bitmap()
>        at Engine6_1_collada_fla::MainTimeline/initMaterials()
>        at Engine6_1_collada_fla::MainTimeline/init()
>        at Engine6_1_collada_fla::MainTimeline/frame1()
>
> aster is a Bitmap (800x600) imported in the Library. i also tried on a
> 3000x2000 bitmap. intially it worked but after doing some
> modifications in the code (but not altering the materials code) i get
> the same error...




-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to