A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: 3D Rotation depth issue

  1. #1
    Join Date
    Feb 2008

    3D Rotation depth issue

    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);

    function moveMouse(e:MouseEvent) {
        //trace("mouse moving: " + e);
        square.rotationX= stage.mouseY;

    Attached Files Attached Files
    The CodeBreaker!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center