I am trying to use the snow effect from Kirupa's Tutorial but only within the screen of a TV. Attached is the .fla if you want to see what is happening. The snow falls outside of the screen and when I look at the script there is no where I can set the starting co-ordinates of the snow. Even when I have been able to get the snow do fall within the range of the screen, you can still see it falling through the frame of the TV.
I cheated a little and got it to work. I changed a lot of the code… In the begining, with the this._x and the this._y. Instead of using the movieWidth/movieHeight like they did, I put in the boundries of the TV:
at the end, it resets _x to -10 and _y to -5. I got rid of all that and told it to just remove the movie clip if it breaks the boundry:
this.removeMovieClip();
And, you can add a loop to the ‘snow’ instance itself, but I just added a redundant gotoAndPlay(1); in the second frame so there is more snow on the screen.
All in all, I don’t really know what I’m doing, but I hope this gets you on track:
Creating engaging and entertaining content for designers and developers since 1998.