# Droptargets with an animation

**URL:** <https://forum.kirupa.com/t/droptargets-with-an-animation/107541>\
**Category:** Uncategorized\
**Created:** [April 16, 2004, 12:37pm UTC](https://forum.kirupa.com/t/droptargets-with-an-animation/107541 "2004-04-16T12:37:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beccatigger](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@beccatigger](https://forum.kirupa.com/u/beccatigger)\
**Post date:** [April 16, 2004, 12:37pm UTC](https://forum.kirupa.com/t/droptargets-with-an-animation/107541/1 "2004-04-16T12:37:27Z")

</div>

Hi, I’m new to the forum & have been using flash mx for a couple of days. I’m working on a game which I need to develop further but firstly I’m starting off with basic things & then making them more complex.

I’ve made a movie clip of a dart which I moves across the stage and hits a target. Now, when it hits the target ( a movie clip of a circle which is red), the circle changes to blue. However, I know the dart movie clip needs some code along the lines of  
on (_event_) {  
[color=#000087]if[/color] ([color=#000087]this[/color].[color=#000087]\_droptarget[/color] == “[color=blue]/circle[/color]”) {  
[color=#000087]\_root[/color].circle.[color=#000087]gotoAndStop/color;  
}  
}

What would the event be? I tried on (rollover) but that didn’t work. Any suggestions?  
The code on the circle is in the circle’s first frame which is:  
stop();

(so it doesnt play the second frame until the dart hits it)  
I’d be so grateful for any help, as it’s for my uni coursework 😃
