To simulate on TransformBitmapMaterial:
floor.material = new TransformBitmapMaterial(Cast.bitmap("floortex"),
{scaleX:0.5, scaleY:0.5, repeat:true});//, precision:20});
floor.addOnMouseMove(this.click3D);
private function click3D(e:MouseEvent3D):void {
var num3d = new Number3D(e.sceneX, e.sceneY, e.sceneZ);
trace(num3d)
}
To simulate on MovieMaterial:
var bmap:Bitmap = new Bitmap(Cast.bitmap(yellow));
var mc:MovieClip = new MovieClip();
var spr:Sprite = new Sprite();
spr.addChild(bmap);
mc.addChild(spr);
mc.gotoAndStop(1);
var sp:MovieClipSprite = new MovieClipSprite(mc, {rescale:true,
scaling:3});
sp.addOnMouseDown(onMouseIsPressed);
view.scene.addChild(sp);
function onMouseIsPressed(event:MouseEvent3D):void
{
trace("FTW");
}
Original issue reported on code.google.com by flashn...@gmail.com on 25 Jun 2008 at 3:11
Original issue reported on code.google.com by
flashn...@gmail.com
on 25 Jun 2008 at 3:11