# \[fmx\] Help! It Snows In All My Scenes!

**URL:** <https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090>\
**Category:** flash\
**Created:** [May 5, 2003, 4:41am UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090 "2003-05-05T04:41:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![meili](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@meili](https://forum.kirupa.com/u/meili)\
**Post date:** [May 5, 2003, 4:41am UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/1 "2003-05-05T04:41:24Z")

</div>

I added the snow effect to one of my movies, it plays from the time you add  
the action script, to the end of the movie. I only want it to play in certain  
scenes, is there any way to do that?

Tank You

I got the action script from:  
[http://www.kirupa.com/developer/mx/snow.htm](http://www.kirupa.com/developer/mx/snow.htm)

:love:

---

<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 5, 2003, 5:46am UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/2 "2003-05-05T05:46:19Z")

</div>

Create the snow effect inside a movie clip symbol in your scene.

After you got the snow working within a movie clip symbol go to your code where you change scenes.

Right before your code to change scenes use a removeMovieClip() command on the clips instance name. So let’s say you give it the instance name “snowStorm” you will remove it like snowStorm.removeMovieClip(); In theory this should work, never tried it though.

Oh yeah… and keep in mind that since your code and all snow clips are going inside the movie clip symbol the targetting will change. That means in this code…  
[AS]for (k=0; k\<50; k++) {  
duplicateMovieClip(\_root.snow, “snow”+k, k);  
}[/AS]

Remove \_root so that it just says “snow” (no quotes), or you can use this.snow.

And to keep dragging this out I have a few questions…

Snow in the Spring/Summer season? Live in a snowy area eh?..lol

And as a little tip… as you get more comfortable with Flash, try and steer away from scenes as much as you can, it will be good for you as Flash kinda sucks with scenes, and putting everything into one file seriously beefs up file size… that was why loadMovie() was created 🙂

---

<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 5, 2003, 6:31am UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/3 "2003-05-05T06:31:45Z")

</div>

I don’t think you can use removeMovieClip when you make the movieclip in the authoring tool. You have to attach the movieclip using _attachMovie();_ or _duplicateMovieClip_ .

---

<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 5, 2003, 8:16am UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/4 "2003-05-05T08:16:50Z")

</div>

yeah… that’s right, njs.

however, if the MovieClip snowStorm is not placed in that frame, there will be no snow. 😉

---

<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 5, 2003, 11:06am UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/5 "2003-05-05T11:06:56Z")

</div>

Yeah, or you could set its \_visible property to 0. Anyway, I hope in the next version Macromedia fix scenes, or take them out. It’s one of the most buggy things in Flash at the moment.

---

<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 5, 2003, 4:00pm UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/6 "2003-05-05T16:00:51Z")

</div>

I tried setting the visible prop to zero, but it still plays the snow from the scene before.

---

<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 5, 2003, 4:15pm UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/7 "2003-05-05T16:15:43Z")

</div>

FRIGGIN FRAGGIN!!! I have been coder retarded for weeks now, this is the longest funk i’ve been in with AS… it makes me sad ☹

---

<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 5, 2003, 4:22pm UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/8 "2003-05-05T16:22:18Z")

</div>

> _Originally posted by lostinbeta_  
> **FRIGGIN FRAGGIN!!! I have been coder retarded for weeks now, this is the longest funk i’ve been in with AS… it makes me sad ☹**

it won’t last forever. 😉

---

<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 5, 2003, 5:06pm UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/9 "2003-05-05T17:06:42Z")

</div>

> \*Originally posted by njs12345 \*  
> \*\*I don’t think you can use removeMovieClip when you make the movieclip in the authoring tool. You have to attach the movieclip using _attachMovie();_ or _duplicateMovieClip_ . \*\*

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12937](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12937) 😉

> \*Originally posted by njs12345 \*  
> \*\*Yeah, or you could set its \_visible property to 0. Anyway, I hope in the next version Macromedia fix scenes, or take them out. It’s one of the most buggy things in Flash at the moment. \*\*

its not as buggy as much as it is misunderstood. They are what they are, but arent quite what they intuitively should be. :-\

… I think Lost had it closest with

> _Originally posted by lostinbeta_  
> **Create the snow effect inside a movie clip symbol in your scene**

If you put the effect in a clip and just run it through that, then when that clip is no longer on the timeline of the scene, it will be removed, despite whatever attaching has been going on within it. Because its all contained within that clip and not being maintained within the main timeline itself (which applies to all scenes) then when the clip is gone, so is the effect. If you ever go back to that scene, the clip will be reinstated and reactivated bringing back the snow. The removeMovieclip shouldnt be necessary since its handled by the timeline.

---

<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 5, 2003, 7:45pm UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/10 "2003-05-05T19:45:17Z")

</div>

Well at least I got SOMETHING right in what I said…lol. :crazy: :hangover:

---

<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 5, 2003, 10:58pm UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/11 "2003-05-05T22:58:02Z")

</div>

> _Originally posted by senocular_  
> **If you put the effect in a clip and just run it through that, then when that clip is no longer on the timeline of the scene, it will be removed, despite whatever attaching has been going on within it. Because its all contained within that clip and not being maintained within the main timeline itself (which applies to all scenes) then when the clip is gone, so is the effect. If you ever go back to that scene, the clip will be reinstated and reactivated bringing back the snow. The removeMovieclip shouldnt be necessary since its handled by the timeline.**

and that’s exactly what i meant to say… the only difference is that you explained it. 😛

---

<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 7, 2003, 10:20pm UTC](https://forum.kirupa.com/t/fmx-help-it-snows-in-all-my-scenes/20090/12 "2003-05-07T22:20:02Z")

</div>

thanks for everyones help.  
I finally got it to work! yeah!

:love:
