# Scene help in flash

**URL:** <https://forum.kirupa.com/t/scene-help-in-flash/60332>\
**Category:** Uncategorized\
**Created:** [August 9, 2004, 3:21am UTC](https://forum.kirupa.com/t/scene-help-in-flash/60332 "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/60332/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2004, 4:05am UTC](https://forum.kirupa.com/t/scene-help-in-flash/60332/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2004, 4:33am UTC](https://forum.kirupa.com/t/scene-help-in-flash/60332/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2004, 4:39am UTC](https://forum.kirupa.com/t/scene-help-in-flash/60332/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”);  
}
