# Targeting

**URL:** <https://forum.kirupa.com/t/targeting/293543>\
**Category:** Uncategorized\
**Created:** [July 30, 2009, 2:46pm UTC](https://forum.kirupa.com/t/targeting/293543 "2009-07-30T14:46:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveypoo](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@daveypoo](https://forum.kirupa.com/u/daveypoo)\
**Post date:** [July 30, 2009, 2:46pm UTC](https://forum.kirupa.com/t/targeting/293543/1 "2009-07-30T14:46:17Z")

</div>

Hi i am new to flash and need some help linking a button within a movieclip, to a certain part of a timeline within another movieclip on the stage.

i have this code.

[COLOR=Navy]this.content\_mc.scroller.btn1.addEventListener( MouseEvent.CLICK, clickF )

function clickF( evt ){  
this.content\_mc.pics.gotoAndPlay(“img1”)  
}  
[/COLOR]  
as you can see i have a button “btn1” within a movieclip “scroller” and this is within a movieclip "content\_mc.

so this button “btn1” needs to start a part of the timeline called “img1” within movie clip “pics” which is located in movieclip "content\_mc.

does this all make sense. is this code correct or am i a doofus.

help please anyone is is much appreciated.

cheers dave
