# Movie Clip fading problem

**URL:** https://forum.kirupa.com/t/movie-clip-fading-problem/227856
**Category:** flash
**Created:** [June 3, 2007, 3:59am UTC](https://forum.kirupa.com/t/movie-clip-fading-problem/227856 "2007-06-03T03:59:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Liameke](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@Liameke](https://forum.kirupa.com/u/Liameke)
#### Post date: [June 3, 2007, 3:59am UTC](https://forum.kirupa.com/t/movie-clip-fading-problem/227856/1 "2007-06-03T03:59:53Z")

</div>

Hello

I have just started using Flash and have come across a problem.  
That being, I have no Idea how to change the Movie Clip using the directional keys.

The Program I am wring is just to change between Movie Clips when pressing one of the directional buttons, but every thing I have tried has either just removed all of the movie clips or shown both.

The code I am using is this but instead of removing the “Cloud Left” Clip it just shows “Cloud Right” and “Cloud Left” at the same time

> 

onClipEvent (load) {  
walkSpeed = 5;  
}

onClipEvent (enterFrame) {

```
    if (Key.isDown(key.RIGHT)) {
      
       this.removeMovieClip("Cloud Left");
       this.attachMovie("Cloud Right");
        _x+= walkSpeed;
     }

```

}
