# "If" statement for MC Timeline-frames

**URL:** https://forum.kirupa.com/t/if-statement-for-mc-timeline-frames/27110
**Category:** flash
**Created:** [July 30, 2003, 7:40am UTC](https://forum.kirupa.com/t/if-statement-for-mc-timeline-frames/27110 "2003-07-30T07:40:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![luster](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@luster](https://forum.kirupa.com/u/luster)
#### Post date: [July 30, 2003, 7:40am UTC](https://forum.kirupa.com/t/if-statement-for-mc-timeline-frames/27110/1 "2003-07-30T07:40:47Z")

</div>

Hi, I would like to apply an action to something if a key is down AND if a MC is on frame1 of its timeline. (if both actions are performed). Now,

[AS]  
if (Key.isDown(Key.CONTROL) and \*\*\*\*\*\*\*\*\*\*\*\* ) {  
actionsactionsactions  
}

[/AS]

Is there an “if that mc is on that frame”-statement in Flash MX?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 30, 2003, 7:49am UTC](https://forum.kirupa.com/t/if-statement-for-mc-timeline-frames/27110/2 "2003-07-30T07:49:42Z")

</div>

[AS]if (yourmovieclip.\_currentframe == 1 && Key.isDown(Key.CONTROL)) {  
//do your stuff  
}[/AS]
