# On(rollOut) in reverse

**URL:** <https://forum.kirupa.com/t/on-rollout-in-reverse/262596>\
**Category:** Uncategorized\
**Created:** [June 7, 2008, 1:41pm UTC](https://forum.kirupa.com/t/on-rollout-in-reverse/262596 "2008-06-07T13:41:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrManIsHere](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mrManIsHere](https://forum.kirupa.com/u/mrManIsHere)\
**Post date:** [June 7, 2008, 1:41pm UTC](https://forum.kirupa.com/t/on-rollout-in-reverse/262596/1 "2008-06-07T13:41:36Z")

</div>

hi!

I have problem, i would like the movieClip to play in reverse when leaving it.

```php
on(rollOver){
gotoAndPlay("start", 2);
}

on(rollOut){
gotoAndStop("start", 1);
} 

// is there anyway to play it in reverse to frame 1? i don't want it to jump to frame1 as it does right know!

on(release){
gotoAndPlay("away", 1);
}

```

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [June 7, 2008, 10:39pm UTC](https://forum.kirupa.com/t/on-rollout-in-reverse/262596/2 "2008-06-07T22:39:08Z")

</div>

Try using “play” in your click function, instead of “gotoAndPlay”.  
Place your out transitions immediately following the sections along the timeline.  
At the end of the out transition, place a stop, and call a function that sends the playhead to the target frame.  
stop();  
loadPage();

This is conceptually different than using the click function to directly load content.  
Instead, you are using the click function to _remove_ content.  
The process of removing content(reverse tweening on frames 2-10) initiates the loading of new content when the playhead reaches the stop action and reference to the loading function.

I’ve used this to build websites when I first started using Flash, and it worked very nicely.  
I currently prefer to do everything on frame1 using programmatic tweening, and no longer use frame navigation or timeline tweens.

---

<div class="post-metadata">

**Author:** ![minthu](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/minthu/32/1757_2.png) [@minthu](https://forum.kirupa.com/u/minthu)\
**Post date:** [June 8, 2008, 5:12am UTC](https://forum.kirupa.com/t/on-rollout-in-reverse/262596/3 "2008-06-08T05:12:55Z")

</div>

Here is a [source file](http://www.flashmo.com/preview/flashmo_088_menu_xml) for buttons which play reverse on roll out.
