with a little more (wrong) code to help you:
this is the more efficient method now, but I still have an offset
(probably becaus of the getUV variables I'm passing)
function onMouseClickOnObject(e:MouseEvent3D):void {
if (e.drawpri is DrawTriangle) {
var dt:DrawTriangle = e.drawpri as DrawTriangle;
var fac:Face = (e.drawpri as
DrawTriangle).faceVO.face;
var uv:UV = dt.getUV(e.sceneX,e.sceneY) as UV;
var m:Matrix = new Matrix();
m.translate
(uv.u*btmData.width,uv.v*btmData.height);
btmData.draw(brush,m);
}
}
Yes, I thought I could get a UV of my mouseevent position : " imagine
all the people, living....."