rob.bateman, katopz,
I made the following changes to help support the "Object3D.canvas"
with objects inside other objects. Are these a good idea? Can this or
something like it be included in the code base?
in Object3D.as I made the following changes starting at line 130 to
recursively update all 3D children with the same canvas:
------------------
public function set canvas(value:Sprite):void
{
_canvas = value;
for(var i:int = 0; i < numChildren; i++)
{
var obj3d:Object3D = getChildAt(i) as Object3D;
if(obj3d)
{
obj3d.canvas = value;
}
}
}
public function get canvas():Sprite
{
return _canvas;
}
------------------
In ObjectContainer3D I made the following addition in the "addChild"
method at line 163:
------------------
163: (child as Object3D).canvas = this.canvas;
------------------