[Papervision3D] HotSpots on the stage
Németh Tibor
megant at freemail.hu
Fri Apr 27 11:57:03 EDT 2007
I'd like to put hotspots to a panorama. These spots are added children
of the panorama called "room". Doesn't work. Why is it?
function addHotSpot():void
{
var hotSpot:DisplayObject3D = room.addChild(new Plane(new
ColorMaterial(0xFFFFFF),10,10), "hotSpot" );
var container:Sprite = hotSpot.container;
hotSpot.x = 0;
hotSpot.y = 255;
hotSpot.z = 200;
container.buttonMode = true;
container.addEventListener(MouseEvent.MOUSE_DOWN, doPress);
}
More information about the Papervision3D
mailing list