Free ActionScript

Home

AS3 Scripts

AS2 Scripts

Resources

About

Contact

First week of spring, and it snows in NYC…

Download Fla Sample

hey hi thanks can u show me how to do it for rain

thanks i got it for rain too

Hi, This effect is great!! Just wondered if there was a special way of stopping it on a looping project! I am looping a project 3 times and need it to stop on the final frame… I’ve tried adding stop tags in the actions panel and tried adding a loop then stop action but neither will work! Any advice would be great!

Thanks

pradvan June 1, 2012 at 9:54 am Hi Nikki, There is no easy way to stop the flakes. One way is to update the code to have only one onEnterFrame function to update all the flakes. That way when you want to stop them, you would just stop that one onEnterFrame. PR Log in to Reply

Hi Nikki,

There is no easy way to stop the flakes. One way is to update the code to have only one onEnterFrame function to update all the flakes. That way when you want to stop them, you would just stop that one onEnterFrame.

I loved your snowflakes but needed them in AS3. There’s an as3 version. You’ll need a MovieClip with the linkage “Snowflake” in your library. Also add this code in a file called “Snowflakes.as”.

usage: var snowflakes:Snowflakes = new Snowflakes(); snowflakes.createSnow(this, 50);

package { import flash.display.MovieClip; import flash.events.Event;

/** * Snow Flakes Effect * * Version: 1.0 * Author: Philip Radvan * URL: http://www.freeactionscript.com */ public class Snowflakes { //settings var speed:Number = 1.25; var wind:Number = 0; var movieWidth:Number = 550; var movieHeight:Number = 400; var container:MovieClip;

public function Snowflakes() {

public function createSnow(containerParam:MovieClip, nbSnowflakes:int):void { container = containerParam;

for (var i:int = 0; i = container.stage.stageHeight) { tempFlake.y = -5; } if (tempFlake.x >= container.stage.stageWidth) { tempFlake.x = 1 } if (tempFlake.x <= 0) { tempFlake.x = container.stage.stageWidth – 1; } } } }

This is awesome… However, I noticed that the amount of snow starts to increase overwhelmingly when the page is left idle for 30-45 min… Is there any fix for that?

just discovered your site a few years too late! is there any way to place objects in FRONT of the falling snow? i’ve played with layers, but…

You must be logged in to post a comment.

AS3 Effects

AS3 Gadgets

Game Examples AS2 Effects Animated Effects Dynamic Enemy AI Game Engine Game Weapons Images Interface Math Security

Effects Animated

Effects Dynamic

Enemy AI

Game Engine

Game Weapons

Images

Interface

Math

Security

Game Examples AS3 Basics Bitmap Blitting Collision Detection Enemy AI Movement Physics Space Shooter User Interface Weapon System

Basics

Bitmap Blitting

Collision Detection

Movement

Physics

Space Shooter

User Interface

Weapon System

Site Updates

718Hosting.com

Actionscript.org Forums

Flash Game Blogs

Flash Game License

Flashkit Forums

gotoAndLearn

IndieGames.com

Kirupa’s Tutorials

Kongregate Forums

MochiAds Resources

Philip Radvan

Photon Storm

Polygonal

Radvan Media

Tonypa’s Tutorials

Register

Log in

Entries RSS

Comments RSS

WordPress.org