A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash 8 layering problem?

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    2

    Question Flash 8 layering problem?

    I have 12 movieclip buttons which each contain a question. When you click on one, the answer appears. I need the answer to remain on the screen. On that same frame, there's a button for "more information".

    When that is selected, it goes to another frame within the mc, and more info appears. However, it is covered up by the other 11 buttons from the main screen.


    I am attaching a fla file in case that makes more sense!

    Thank you very much for any advice.
    Attached Files Attached Files

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    Main time line replace existing code with this...
    Code:
    stop();
    
    var baseX = 212;
    var baseY = 248;
    var currentBtn;
    
    var btns = [button1_mc, button2_mc, button3_mc, button4_mc, button5_mc, button6_mc, button7_mc, button8_mc, button9_mc, button10_mc, button11_mc, button12_mc];
    
    for (var i in btns) {
    	btns[i].begX = btns[i]._x;
    	btns[i].begY = btns[i]._y;
    	btns[i].onPress = function() {
    		currentBtn = this
    		currentBtn.swapDepths(0);
    		currentBtn.gotoAndPlay("down");
    		currentBtn._x = currentBtn.begX;
    		currentBtn._y = currentBtn.begY;
    	};
    }
    In the button movie clip, on the 'info1' frame, ACT layer...
    Code:
    stop();
    this._x = _parent.baseX;
    this._y = _parent.baseY;

  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    2

    Flash 8 Layering Problem

    I cannot thank you enough. I've been trying to figure this out for a week, driving me crazy.

    This is great, thank you.

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