# Help with buttons and child mc

**URL:** https://forum.kirupa.com/t/help-with-buttons-and-child-mc/331656
**Category:** flash
**Created:** [September 18, 2013, 1:51pm UTC](https://forum.kirupa.com/t/help-with-buttons-and-child-mc/331656 "2013-09-18T13:51:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rkc87](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rkc87](https://forum.kirupa.com/u/rkc87)
#### Post date: [September 18, 2013, 1:51pm UTC](https://forum.kirupa.com/t/help-with-buttons-and-child-mc/331656/1 "2013-09-18T13:51:49Z")

</div>

Hello guys, first of all sorry for the poor english.  
I’m kind of newbie in AS3 (how I miss AS2) and I’m going crazy with this simple thing:  
I followed [tutsplus.com](http://tutsplus.com) tutorial and built my fluid layout:

```auto
package {

    import flash.display.*;
    import FluidLayout.*;
    
    public class Website extends MovieClip{
        
        public function Website()
        {
            /* Set the Scale Mode of the Stage */
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;
            
            /* Add the symbols to stage */
    
        
            var menu = new Menu();
            addChild(menu);
        
            var middle = new Middle();
            addChild(middle);
            
            /* Apply the alignment to the menu */
            var menuParam = {
                x:1,
                y:0,
                offsetX: -menu.width - 20,
                offsetY: 20
            }
            new FluidObject(menu,menuParam);
        
            /* Apply the alignment to the content */
            var middleParam = {
                x:0.5,
                y:0.5,
                offsetX: -middle.width/2,
                offsetY: -middle.height/2
            }
            new FluidObject(middle,middleParam);
        

```

**The question is:** In the MC MENU I have a button called “Portfolio”. What I want is that this button makes MIDDLE go to a specific frame, how can I do it? The code must be placed in the main timeline or in the MENU MC timeline?

There are others MC’s in this movie… In AS2 I used to do that simply using “.root.middle.gotoandplay()” but with AS3 and this fluid layout, I’m totally lost.

Can you guys help me?
