# Need HELP Targeting a Movieclip inside a Scroll panel AS3

**URL:** <https://forum.kirupa.com/t/need-help-targeting-a-movieclip-inside-a-scroll-panel-as3/321807>\
**Category:** flash\
**Created:** [May 2, 2011, 11:03am UTC](https://forum.kirupa.com/t/need-help-targeting-a-movieclip-inside-a-scroll-panel-as3/321807 "2011-05-02T11:03:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dalfred](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@Dalfred](https://forum.kirupa.com/u/Dalfred)\
**Post date:** [May 2, 2011, 11:03am UTC](https://forum.kirupa.com/t/need-help-targeting-a-movieclip-inside-a-scroll-panel-as3/321807/1 "2011-05-02T11:03:50Z")

</div>

Hello everyone. My first time here so go easy on me :sigh:

Ok, i bought a scroller that works well scrolling content. With elasticity and stuff.

My problem is trying to access buttons inside the scroller.

I have an instance of the scroller component on stage and named it Scroller.  
I set the content in its component inspector.  
It loads a movieclip from the Library called Panel.  
Inside the Panel i have 2 buttons. button1 and button2.  
If i publish everything works fine.

Now i am not very good at AS3.  
How do i access the buttons.  
i’ve tried this among other bits and pieces i found on the web.

Scroller.Panel.button1.addEventListener(MouseEvent.CLICK, somefunction);

Can’t get it to work. I know the Panel movie out of the library that the Scroller component loads needs to be somehow listened for but i don’t have a clue.

Aprreciate any help.

i have no idea how to access the buttons without getting an error

1119: Access of possibly undefined property button1 through a reference with static type Class.

Regards

Alfred
