# Transition help!

**URL:** https://forum.kirupa.com/t/transition-help/238983
**Category:** flash
**Created:** [September 17, 2007, 6:36pm UTC](https://forum.kirupa.com/t/transition-help/238983 "2007-09-17T18:36:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![huckwalton](https://avatars.discourse-cdn.com/v4/letter/h/e19b73/32.png) [@huckwalton](https://forum.kirupa.com/u/huckwalton)
#### Post date: [September 17, 2007, 6:36pm UTC](https://forum.kirupa.com/t/transition-help/238983/1 "2007-09-17T18:36:33Z")

</div>

I have a cool button made from a movie clip with this AS:

```auto
stop(); 

this.onEnterFrame = function(){ 
if(rewind == true){ 
prevFrame(); 
} 
} 
  
this.onRollOver = function(){ 
rewind = false; 
play(); 
} 
  
this.onRollOut = function(){ 
rewind = true; 
} 
  
this.onRelease = function(){ 
getURL("site name"); 
} 

```

but I want a transition to occur when I hit it like in this tut:

[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions2.htm)

Ive used the AS from the tut. before. Is there a way to use the first AS and make it do this kind of transition?  
Thank you for any help!
