Biggest issue… snowfall not self contained. A lot of the questions about the snow is that it continues across scenes or they cant control elements that are to be above it as well as below or something to that effect.
Simplest solution is structuring the code so it will work in a movieclip and not off of root. I dont know offhand how its set up, but it shouldnt be hard (I remember there being a _root reference or two that should be set to this or this._parent etc).
That and maybe a few other simple additions to answer common snow questions… the snow to bubbles question can easily be answered with “turn it upside down” when its contained in a clip as well.
Hey everyone!
I think I have revised the tutorial to the way you all like it: http://www.kirupa.com/developer/mx2004/snow.htm The effect is contained in its own cute little movie clip, and I figured I’d make it so that the snow’s direction changes depending upon where the movie clip is. The tutorial is not finished yet - I have to explain the code, but that should be done tomorrow :be:
Cheers!
Kirupa
EDIT: I’ll provide FLAs for FMX also.
EDIT2: Sen - since the snow’s direction changes according to the “wind”, I felt the waving effect would be unnecessary. If you think that effect would be neat, I could add that one line of code you mentioned in your above post.
*Originally posted by Ilyas da Pom *
**Nice effect, but onClipEvent (load)?? onClipEvent (enterFrame)??? :bad: **
You got a problem with movie event handlers?
what if they don’t need to be dynamic? :-\ Why not. It saves the trouble of needing an instance name and if the clip/button is deleted, the code goes with it (preventing you to have to find and dispose of it manually)