# Access buttons inside movie clip

**URL:** <https://forum.kirupa.com/t/access-buttons-inside-movie-clip/305479>\
**Category:** Uncategorized\
**Created:** [February 26, 2010, 12:46am UTC](https://forum.kirupa.com/t/access-buttons-inside-movie-clip/305479 "2010-02-26T00:46:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loudsubs](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@Loudsubs](https://forum.kirupa.com/u/Loudsubs)\
**Post date:** [February 26, 2010, 12:46am UTC](https://forum.kirupa.com/t/access-buttons-inside-movie-clip/305479/1 "2010-02-26T00:46:02Z")

</div>

I’ve got some buttons in a movie clip called myContent. myContent is in the library, it is being exported for actionscript, and then referenced by a scrollpane component on the main stage.

The idea is that there is a scroll pane with buttons in it, each button loads a video (from a folder called FLV) on the FLVplayer component (instanced ‘vidPlayer’) on the main stage.

For some reason the buttons are unresponsive when I publish the movie. the scrollpane loads up ok with the buttons in it, but the buttons dont load the videos they are supposed to when clicked on. no errors though.

I get the feeling this is because they are inside a movie clip which is inside a scrollpane.

This is an example of the script inside the myContent movie clip for one of the buttons:

dance.addEventListener(MouseEvent.CLICK, vid1);

function vid1(e:Event):void{  
MovieClip(root).vidPlayer.source = “FLV/dance.flv”  
};

Do I need to add some script on the main timeline, to tell it there are buttons to look for?

Thanks in advance for any advice.
