here is my error, maybe someone can help….
Error: Error #3691: Resource limit for this resource type exceeded.
at flash.display3D::Context3D/createVertexBuffer()
at away3d.core.base::SubGeometry/activateVertexBuffer()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/base/SubGeometry.as:75]
at away3d.core.base::SubMesh/activateVertexBuffer()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/base/SubMesh.as:187]
at away3d.materials.passes::OutlinePass/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/materials/passes/OutlinePass.as:213]
at away3d.materials::MaterialBase/renderPass()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/materials/MaterialBase.as:443]
at away3d.core.render::DefaultRenderer/drawRenderables()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:224]
at away3d.core.render::DefaultRenderer/draw()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:117]
at away3d.core.render::RendererBase/executeRender()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/RendererBase.as:281]
at away3d.core.render::DefaultRenderer/executeRender()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/DefaultRenderer.as:62]
at away3d.core.render::RendererBase/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/core/render/RendererBase.as:245]
at away3d.containers::View3D/render()[/Users/robbateman/Documents/Adobe Flash Builder 4.7/away3d-core-fp11/src/away3d/containers/View3D.as:696]
at gridmaker6d_fla::MainTimeline/proxyonEnterFrame()[gridmaker6d_fla.MainTimeline::frame1:1680]
I get this when I create 100 cubes, put them into a 3dcontainer, remove them all, and re-populate. This error occurs after 9 times of repopulating.
I think its a memory thing, but I’ thought I was clearing the meshes correctly. Can someone look at my code to see if I am removing things right?
thanks in advance,
andy
and my code to remove cubes…...
try{
while (my3dContainer.numChildren != 0)
{
my3dContainer.getChildAt(0).dispose()
my3dContainer.removeChildAt(0);
}
} catch(e:Error){
}
my3dContainer.dispose()
try{
view.scene.removeChild(my3dContainer)
} catch(e:Error){
}
cardContainer=null