# Scene help in flash

**URL:** https://forum.kirupa.com/t/scene-help-in-flash/118772
**Category:** Uncategorized
**Created:** [August 9, 2004, 3:21am UTC](https://forum.kirupa.com/t/scene-help-in-flash/118772 "2004-08-09T03:21:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dee](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dee](https://forum.kirupa.com/u/Dee)
#### Post date: [August 9, 2004, 3:21am UTC](https://forum.kirupa.com/t/scene-help-in-flash/118772/1 "2004-08-09T03:21:40Z")

</div>

[font=verdana, arial, helvetica][size=2]I am building a website in flash. I have a movie clip that I want to play when I change scenes (for example: it is a picture that I have put on the home page and I want it to fade out when I go to the about page) what do I do??[/size][/font]

---

<div class="post-metadata">

### Author: ![julpa](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@julpa](https://forum.kirupa.com/u/julpa)
#### Post date: [August 9, 2004, 4:05am UTC](https://forum.kirupa.com/t/scene-help-in-flash/118772/2 "2004-08-09T04:05:50Z")

</div>

well you can either do it the easy way and make a motion tween. with the alpha set to 100 when you want it seen and the alpha set to 0 when you dont want it seen.

or you can do it like a movie clip with code.

just put this code on the movie clip on the frame you want it to start fading out at.

onClipEvent(enterFrame) {  
\_alpha -= 5;  
if (this.\_alpha \<= 0) {  
removeMovieClip(this);  
}  
}  
change the alpha setting to a higher number if you want it to fade faster. and that other stuff is just so you dont have a movie clip laying around doing nothing

oh but its way easier and i would rather use the motion tween myself.

---

<div class="post-metadata">

### Author: ![Dee](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Dee](https://forum.kirupa.com/u/Dee)
#### Post date: [August 9, 2004, 4:33am UTC](https://forum.kirupa.com/t/scene-help-in-flash/118772/3 "2004-08-09T04:33:58Z")

</div>

I have the motion tween set and it works fine but I don’t want the movie clip to play (picture to fade out) until I click on another button to go to a different page. Does that make sense??

---

<div class="post-metadata">

### Author: ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)
#### Post date: [August 9, 2004, 4:39am UTC](https://forum.kirupa.com/t/scene-help-in-flash/118772/4 "2004-08-09T04:39:15Z")

</div>

use a stop() action on the first frame then on the buttons place a  
on (release) {  
yourmoviename.gotoAndPlay(“fade”);  
}
