# Changing frames (AS 2.0)

**URL:** https://forum.kirupa.com/t/changing-frames-as-2-0/283346
**Category:** programming
**Created:** [March 5, 2009, 5:24am UTC](https://forum.kirupa.com/t/changing-frames-as-2-0/283346 "2009-03-05T05:24:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Glavigar](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Glavigar](https://forum.kirupa.com/u/Glavigar)
#### Post date: [March 5, 2009, 5:24am UTC](https://forum.kirupa.com/t/changing-frames-as-2-0/283346/1 "2009-03-05T05:24:19Z")

</div>

I’m trying to make a platforming game but I ran into this problem. I’m trying to change the frame when the Main character he hits certain objects (like a door). However the hitTest function doesn’t seem to work. I’m not very experienced with action scripting.

On my Character movieclip,  
if (this.hitTest(\_root.door)){  
gotoAndStop(2)  
}
