# Help with flipping!

**URL:** <https://forum.kirupa.com/t/help-with-flipping/222024>\
**Category:** Uncategorized\
**Created:** [April 10, 2007, 7:18am UTC](https://forum.kirupa.com/t/help-with-flipping/222024 "2007-04-10T07:18:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slayerX2](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@slayerX2](https://forum.kirupa.com/u/slayerX2)\
**Post date:** [April 10, 2007, 7:18am UTC](https://forum.kirupa.com/t/help-with-flipping/222024/1 "2007-04-10T07:18:34Z")

</div>

Hey, i need help with this.  
my guy is walkin right, right?, and i want him when hes done to finish in a standing mode facing write, whats happening is its walkin right, but it faces left, i no the problem, but i need a code basically saying if in this position flip (frame label) ill post the code  
if you do not understand just say so

onClipEvent(load){  
speed = 5;  
}

onClipEvent(enterframe){  
if (Key.isDown(Key.LEFT)){  
this.gotoAndStop(21)  
this.\_x -= speed;  
}  
if (Key.isDown(Key.RIGHT)){  
this.gotoAndStop(61)  
this.\_x += speed;  
}  
if (Key.isDown(Key.CONTROL)){  
this.gotoAndStop(41)  
}  
}

Remember all i need is a flipping code, saying if in walking right, lip the stand, to stand right, Thanks
