Snow « Nature « Flash Tutorials

Home
Flash Tutorials
1.Actionscript Programming
2.Animals
3.Animation
4.Colors
5.Design
6.Effects
7.Game Cartoon
8.Humans
9.Models
10.Nature
11.Operations
12.Shapes
Flex
Flash / Flex / ActionScript
Flash Tutorials » Nature » Snow 

1. Turnis - Snow Tutorial    flashagames.ca

Turnis - Snow TutorialStep 5 Now select your snow flake, open the actions panel, and paste this code: onClipEvent (load) { this._width = 11;// Reset the width, for duplicating purposes; this._height = 11;// Reset the height, for duplicating purposes; var fallSpeed = random(_root.max_speed)*(_root.wind_speed/5);// Just some math for the fall speed var c_speed = _root.wind_speed// The current speed (needed for blizzard winds if (fallSpeed == 0) {// That means it won't move! :S fallSpeed = 1;// Let us move! }// End fall speed // This ONLY WORKS IF YOUR WIDTH AND HEIGHT ARE THE SAME!!! // MAKE SURE THEY ARE OF YOUR SNOW_FLAKE! var snow_width = random(this._width);// Gets the width of the snow_flake this._width = snow_width;// Set the width to the new one this._height = snow_width;// Set the height to the new one fallSpeed = snow_width+random(_root.max_speed);// Make our fall speed } onClipEvent (enterFrame) { this._y += fallSpeed;// Make the snow_flake fall if(c_speed != 0){// If(the current wind speed is not 0 this._x += c_speed// We can stay put on the x axis! }//End c_speed if if(this._y > _root.stage_height+10){// If this is off the stage this.removeMovieClip()// Temove it! }// Done stage check y if(this._x > _root.stage_width+10){// If we're out of the x sight // This allows us to continue to see snow if wind speed is high this._x = -10;// Put us back to beginning (x axis)! (creates a neat effect) }// Done stage check x if(this._x < 0-10){// If we're out of the x sight // This allows us to continue to see snow if wind speed is high this._x = _root.stage_width+10;// Put us back to beginning (x axis)! (creates a neat effect) }// Done stage check x }

2. Creating Snow in Flash Actionscript    azroc.co.uk

Creating Snow in Flash ActionscriptC# Introduction

3. Snowfall - Flash    flashdesignerzone.com

Snowfall - Flash

4. kirupa.com - Flash Snow 3.0    kirupa.com

kirupa.com - Flash Snow 3.0

5. ProDesignHost.com - Let Is Snow in Flash MX    prodesignhost.com

ProDesignHost.com - Let Is Snow in Flash MX

6. Flash Snow    tutorio.com

A snow flake is attached using the attachMovie and given the variable thisFlake is assigned as a temporary refrence.

7. Let Is Snow | Flash Tutorials    webdesign.org

java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.