# Buttons inside movieclips. timeline control dilema!

**URL:** <https://forum.kirupa.com/t/buttons-inside-movieclips-timeline-control-dilema/283758>\
**Category:** Uncategorized\
**Created:** [March 10, 2009, 8:05pm UTC](https://forum.kirupa.com/t/buttons-inside-movieclips-timeline-control-dilema/283758 "2009-03-10T20:05:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dochollidayIX](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dochollidayIX](https://forum.kirupa.com/u/dochollidayIX)\
**Post date:** [March 10, 2009, 8:05pm UTC](https://forum.kirupa.com/t/buttons-inside-movieclips-timeline-control-dilema/283758/1 "2009-03-10T20:05:32Z")

</div>

Okay,

so im making a portfolio website that is composed of 3 general movie clips all located on the main stage.

STAGE —\> **mainscreenMC**  
—\> **recentworkMC**  
—\> **newsMC**

the \*\*mainscreenMC \*\*movieclip is just what it says… It is the main section of the site i am using to display information/graphics. I’ve given it an instance name of **mainscreenINST**

I also have several buttons on the main stage that im using mouse event handlers to tell the mainscreenMC to jump to specific frames and play or stop.

**example:**

[COLOR=dimgray]clienteleButton.addEventListener(MouseEvent.CLICK,onMouseClick);[/COLOR]  
[COLOR=dimgray]function onMouseClick(e:MouseEvent):void  
{  
mainscreenINST.gotoAndPlay(“93”);  
}[/COLOR]

**That all works perfectly.**

Now, i’ve added another movie clip inside the **recentworkMC** movie clip which contains several buttons. now, the hierarchy looks like this…

STAGE —\> **mainscreenMC**  
—\> **recentworkMC —\> otherMC —\> Buttons**  
—\> **newsMC**

each of these buttons inside this **otherMC** are supposed to tell the \*\*mainscreenMC \*\*(on the main stage) to gotoAndStop on an empty frame, in effect hidding it to make room for importing some child swf’s.

I’ve been trying to use the same mouse event handlers i used on the working buttons i have on the main stage with some modifications, mainly using things like [COLOR=red]stage.mainscreenINST.gotoAndStop(“201”) or root.mainscreenINST.gotoAndStop(“201”) [/COLOR][COLOR=black]and the like. NOTHING WORKSSS!!![/COLOR]

pleeeeease heeelp im going crazy!:pirate3:
