A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: 3D Rotation depth issue

  1. #1
    THE YELLOW FLASH!
    Join Date
    Feb 2008
    Posts
    57

    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);
       
    //setupStage();

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

    }
    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