I am extending a ObjectContainer3D. Into that, I create a plane. That is all fine. Then I add event listeners onto an instance of that class, but they are never fired. Anything I should check for or know about?
CoverFlowItem class:
public class CoverFlowItem extends ObjectContainer3D implements IView
{
...
}
In the parent class that contains instances of CoverFlowItem:
public function addItem(vo:CoverFlowThumbVO, update:Boolean = false):void
{
var item:CoverFlowItem = new CoverFlowItem();
item.setScale(_scale);
item.id = vo.id;
item.bitmapData = vo.bitmapData;
item.init();
item.addEventListener(MouseEvent3D.MOUSE_OVER, mouseEvent3DHandler);
item.addEventListener(MouseEvent3D.MOUSE_DOWN, mouseEvent3DHandler);
item.addEventListener(MouseEvent3D.MOUSE_UP, mouseEvent3DHandler);
item.addEventListener(MouseEvent3D.MOUSE_OUT, mouseEvent3DHandler);
item.addEventListener(MouseEvent3D.CLICK, mouseEvent3DHandler);
_items.push(item);
addChild(item);
_numItems = _items.length;
item.positionIndex = _numItems - 1;
if(update) updateItemsProperties(0);
}
private function mouseEvent3DHandler(event:MouseEvent3D):void
{
trace("n", this, "--- mouseEvent3DHandler ---");
trace("t", "event: " + (event));
}