# IF statement based on 3 events?

**URL:** <https://forum.kirupa.com/t/if-statement-based-on-3-events/256418>\
**Category:** flash\
**Created:** [April 2, 2008, 9:04pm UTC](https://forum.kirupa.com/t/if-statement-based-on-3-events/256418 "2008-04-02T21:04:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdesigner36](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gdesigner36](https://forum.kirupa.com/u/gdesigner36)\
**Post date:** [April 2, 2008, 9:04pm UTC](https://forum.kirupa.com/t/if-statement-based-on-3-events/256418/1 "2008-04-02T21:04:15Z")

</div>

I need to write an if state based on a combination of 3 hittests possible?

if that doesnt make sense maybe this diagram can help explain what I have been fighting with

item 1–dragged on-----hittarget1  
item 2–dragged on----hittarget2------loads image in empty loaderclip  
item 3–dragged on----hittarget3

item 1–dragged on-----hittarget1  
item 2–not dragged----hittarget2------does nothing  
item 3–dragged on----hittarget3

My problem is trying to figure out how to do a multiple situation IF statement. I can do it if one item hits one target, but cant get it to work when adding items 2 and 3. please help!!!

Thanks All
