# A bit of help with .AttachMovie

**URL:** <https://forum.kirupa.com/t/a-bit-of-help-with-attachmovie/236264>\
**Category:** programming\
**Created:** [August 19, 2007, 6:27am UTC](https://forum.kirupa.com/t/a-bit-of-help-with-attachmovie/236264 "2007-08-19T06:27:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rah33m](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@rah33m](https://forum.kirupa.com/u/rah33m)\
**Post date:** [August 19, 2007, 6:27am UTC](https://forum.kirupa.com/t/a-bit-of-help-with-attachmovie/236264/1 "2007-08-19T06:27:30Z")

</div>

I am trying to learn to use .attach and well first i got 5 frames of animation under the mc Walking then on the main screen i just had a Mc of the animation still then on it i put on the still mc

onClipEvent(enterFrame){  
if(Key.isDown(Key.RIGHT)){  
this.attachMovie(“Walking”, “Walking1”, 1 );  
this.\_x += 5;  
}

}  
and when i test it all it does when i hit right once it starts the walking animation moves 5 pixels but is still and if i hold down right it goes back to the Still mc and drags across
