A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How I can make the a movie layer on top of the main layer in timeline.

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    2

    How I can make the a movie layer on top of the main layer in timeline.

    Hi,

    I am a absolute new beginner. How I can make the rectangular box in text 1 overlap test2 without arranging the layers in main timeline. Thanks.

    See attachment. Thanks.
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    106
    After reviewing your file, I can see you could benefit from the use of Instance names and consolidating your code into one "actions" layer.

    Also, if you are just wanting a box to appear in the "over" state of a mouse interaction, you could use a simple button as opposed to a MovieClip symbol.

    That being said, it is relatively easy to make the box appear on the top layer.

    Just modify the code in the first frame of your symbols to this:
    Code:
    stop();
    
    addEventListener(MouseEvent.ROLL_OVER, onMouseoverbtn1);
    
    
    
    function onMouseoverbtn1(event:MouseEvent) :void {
    	Object(parent).addChild(event.target);
    //this tells the parent object (main timeline) to move MovieClip to the top of its display list
    	gotoAndPlay("2");
    	
    }

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