# Control a movieclip timeline

**URL:** <https://forum.kirupa.com/t/control-a-movieclip-timeline/2674>\
**Category:** Uncategorized\
**Created:** [May 13, 2002, 5:48pm UTC](https://forum.kirupa.com/t/control-a-movieclip-timeline/2674 "2002-05-13T17:48:24Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [May 13, 2002, 5:48pm UTC](https://forum.kirupa.com/t/control-a-movieclip-timeline/2674/1 "2002-05-13T17:48:24Z")

</div>

ok.

what i’m trying to accomplish is on  
the rollover of a button, a picture  
fades in, and on rollout, the picture  
fades out. that shouldn’t be too hard,  
but i would like to have one rolled out  
and another rolled over, so one picture  
is fading out, and another fading in  
these pictures are supposed to overlay  
so i am thinking that i will need to use  
actionscripts to control the timeline of  
a movieclip.

so my question is, “How do i control  
the timeline of a movieclip from the  
base leve?”

any ideas, comments, or help are great  
thanks

Nate

---

<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:** [May 13, 2002, 9:30pm UTC](https://forum.kirupa.com/t/control-a-movieclip-timeline/2674/2 "2002-05-13T21:30:12Z")

</div>

whatup dude,

just make a movie clip that houses the pics you want to fade and have a button control that clip.

like this:  
on (rollOver){  
\_root.MC.gotoAndPlay(“open”);  
}  
on (rollOut){  
\_root.MC.gotoAndPlay(“close”);  
}

make sense?
