I have been trying to rotate a mc with mouse move.I made it this far.But the problem is that,the MC behind the square,saying 'D' is not coming to front automatically(forgive me with the annoying black line blinking,was testing goto command in it).The mc saying 'D' is placed behind the square using the 3D Rotation tool,and not using code.How can I make it come in front,without using any 3D engines(well none of em allows to incorporated 2D movieclips though.Just apply em as textures.)
The AS3 code and the swf is attached.
Actionscript Code:
import flash.events.MouseEvent;
//function setupStage() {
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveMouse);
//setupStage();
function moveMouse(e:MouseEvent) {
//trace("mouse moving: " + e);
square.rotationX= stage.mouseY;
square.rotationY=stage.mouseX;
}