# AS3: movieclip to target

**URL:** <https://forum.kirupa.com/t/as3-movieclip-to-target/293312>\
**Category:** flash\
**Created:** [July 27, 2009, 9:41am UTC](https://forum.kirupa.com/t/as3-movieclip-to-target/293312 "2009-07-27T09:41:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickkkk9](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@nickkkk9](https://forum.kirupa.com/u/nickkkk9)\
**Post date:** [July 27, 2009, 9:41am UTC](https://forum.kirupa.com/t/as3-movieclip-to-target/293312/1 "2009-07-27T09:41:32Z")

</div>

I am fairly new at AS3 and I was wondering if anyone can help me with this:  
I have a movieclip playing and when I click a certain button I want the movieclip to first play an “outro” animation (which is also inside the movieclip) then go to the real target of the button.  
For example, I am at the Homepage of my website then I click on the Contact button. The homepage will first go to Homepage’s outro animation then go to the Contact page.  
I need the button to recognize the page/clip being played and the page it will go to.  
Thanks!  
P.S. Please explain to me how the code works and how I will change it because I am a REAL noob at this thanks 🙂
