Snow 2.0 Problems
when i publish the script, macromedia flash mx 2004 tells me that the script is uunresponsive and could slow down my computer do i wish to abort? i dont understand
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-03-2005, 06:00 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Snow Effect Without The Mouse Effects Required [asdvanced Snow From Free Source]
Hi all.
Managed to find this really cool snow effect but trying to remove the mouse interaction, but in doing so the snow seems to stop or fade after five or ten seconds due to removing the mouse elements, however if they are in place without any hit with the mouse the snow still continues to fall regardless so in effect I need the snow to keep running without any effect from the mouse, here is the actionscript as below. Any help would be great.
cheers
ActionScript Code:
//var total = 0;//function setQuality(thisSpeed) { if (thisSpeed == 1) { total = 100; } else if (thisSpeed == 2) { total = 300; } else { total = 400; }}setQuality(_global.speed);/////////////////////////////////////function createParticles() { for (var i = 0; i<total; i++) { this.ele.attachMovie("bit", "bit"+i, i++); var clip = this.ele["bit"+i]; clip.force = 0; clip.mn = 1+Math.random()*1.5; clip.x = Math.random()*2-0.75; clip.y = Math.random()*2; clip._x = (Math.random()*this.frame_mc._width)+left; clip._y = Math.random()*200-220; clip._xscale = 70+Math.random()*290; clip._yscale = 70+Math.random()*290; clip.ct = Math.floor(Math.random()*60); clip.c = 0; clip.onEnterFrame = function() { this.c++; if (this._x<_x/*mouse*/) { this.x -= this.force; } else { this.x += this.force; } if (this.force>0) { this.c = 0; this.force *= 0.6; if (this.force<0.05) { this.force = 0; } } if (this.c>this.ct) { this.x = Math.random()*5-1.5; this.c = 0; this.ct = Math.floor(Math.random()*60); } this._y += (this.y+this.mn)-(this.force*9); this._x += this.x; if (this._x<left-5) { this.x = Math.random()*5-1.5; this.force = 0; this._x = right+2; } if (this._x>right+5) { this.x = Math.random()*5-1.5; this.force = 0; this._x = left-2; } if (this._y>_y/*mouse*/-25 && this._y<_y/*mouse*/+25 && this._x>_x/*mouse*/-35 && this._x<_x/*mouse*/+35) { this.force += Math.random()*5; } else if (this._y>=bottom+5) { this.force = 0; this.x = Math.random()*5-1.5; } }; }}///*function clearAll() { for (var i = 1; i<=total; i++) { removeMovieClip(this.ele["bit"+i]); }}*///createParticles();//stop();
Falling Snow - Showing/Hiding The Snow
Hey everyone,
A question someone asked me earlier was how to make the snow disappear or reappear at a certain point. For example, you may want the snow to fall in Frames 1-30, but beyond that, you would not want any snow to fall. The code I had provided in v2.0 of the tutorial did not address that, so until I write a modified tutorial, I have provided the FLAs (for MX) that help you to control when you want or don't want the snow to fall
I have provided two variations of the Falling Snow file. One method stops or starts the falling snow by having you press a button (the white/pink circle on the bottom left of the animation). The second method displays the falling snow for about 30 frames, and then it stops displaying the falling snow.
The primary thing you will need to consider in this new version of the falling snow is your placement of:
ActionScript Code:
_root.run = 1 // displays snow
- and -
ActionScript Code:
_root.run = 0 // hides snow
Also, I made some minor modifications to the actual Falling Snow code found on the snow movie clip, and that can be found here:
ActionScript Code:
onClipEvent (load) {//variableswidth = 300;height = 200;//random x,y, and alpha this._xscale = this._yscale=50+Math.random()*100;this._alpha = 20+Math.random()*50;//random x and y for flakesthis._x = -width+Math.random()*(3*width);this._y = -10+Math.random()*height;//speed and trigonometric valuei = 1+Math.random()*2;k = -Math.PI+Math.random()*Math.PI;rad = 0;this._visible = false;}onClipEvent (enterFrame) {//////////////////////////////////////if (_root.run == 1) {//////////////////////////////////////this._visible = true;// horizontal movementrad += (k/180)*Math.PI;xmovement = _root._xmouse;this._x -= Math.cos(rad)+(xmovement-(width/2))/50;// vertical movementthis._y += i;// remove clips when they misbehave (overstep boundaries)if (this._x>(width+50)) {this._x = -45;this._y = Math.random()*height*2;}if (this._x<-50) {this._x = width+45;this._y = Math.random()*height*2;}if (this._y>=height) {this._y = -50;this._x = -width+Math.random()*(3*width);}//////////////////////////////////////} else {this._visible = false;}//////////////////////////////////////}
The source files should contain everything I have explained here.
Cheers!
Kirupa
Snow Behind MC (using Snow 3.0)- Depth Issues
Hey folks! I am hoping someone can help me out with this one. Thanks to Sammo I was able to put an end to my snowfall headache using snow 3.0 http://www.kirupa.com/developer/flash8/snow.htm -- But now another problem has risen.
I need it to "snow" behind a movieclip and I can seem to figure out the right way of doing this . Anyone? Not sure if this involves using movieclip.getNextHighestDepth(); for the object? Just one of my unsuccessful attempts.
Help.....
Snow, Blummin Snow
Hey Guys,
What a nightmare! I love the Snow tutorial our god of Flash, Kirupa, did but I can't seem to take the code etc and bung it into something I'm working on.
It's bloody strange, everything is exactly the same. The names, the vars, the timelines, the sizes, the Flash version, even the bloody colours, but it still just grinds my system to a hault and prompts me to stop the script. This all happens when I export/preview obviously.
Anyway, it's here www.tigeralex.co.uk/MYTEST_SOL.fla
Would love some help?
A dearly grateful, Alex.
Snow Glorious Snow
Hello all,
Hate to cross post this, but I'm not getting any takers over in the Flash 8 forum.
I am using the snow method wonderfully created here on Kirupa and have a quick question.
Currently, the movie just starts with a screen full of snow. I'd like to get it to start off screen and fall in. Basically setting an initial state for the ._y of 0. I also can't seem to get a delay working for the function. Ideas?
Thanks!
ActionScript Code:
var movieWidth = 470;var movieHeight = 230;createEmptyMovieClip("snowholder",this.getNextHighestDepth());function makesnow() { for (var i = 0; i<500; i++) { var clip = snowholder.attachMovie("snow", "s"+i, i); clip.i = 1+Math.random()*2; clip.k = -Math.PI+Math.random()*Math.PI; clip._xscale = clip._yscale=20+Math.random()*100; clip._alpha = 75+Math.random()*100; clip._x = -10+Math.random()*movieWidth; clip._y = -10+Math.random()*movieHeight; clip.finished = false clip.onEnterFrame = move; }}function move() { this.rad += (this.k/180)*Math.PI; this._x -= Math.cos(this.rad); this._y += this.i; if (this._y>=movieHeight) { if(!this.finished){ this._y = -5; }else{ this.removeMovieClip() } } if ((this._x>=movieWidth) || (this._x<=0)) { this._x = -10+Math.random()*movieWidth; this._y = -5; }}function removesnow() { for (var obj in snowholder) { if (typeof snowholder[obj] == "movieclip") { snowholder[obj].finished = true } }}makesnow();setInterval(removesnow,5000);
Snow 3.0 Help - End Snow Function
Hey !!
Im using the Snow 3.0 effect but i need a bit of AS that will end the snow effect once the playhead has left the frame
or a bit of AS that will end the function once a button is clicked or something like that
cos the snow still falls after i leave the frame !!
Snow On Tv
Hello all,
Everybody has seen it on tv. The channels where there is nothing but snow. I would like to do the same in Flash but I have no idea how I would do this. Could somebody give me some help.
Thanks
Snow In MX?
Hi all!
Is it possible to have falling snow that settles and builds up in certain areas on the stage?
Thanks in advance
Andy
Snow
I am making a Christmas card with flash mx and I am using actionscript to make it snow. Could somebody check my code and tell me what is wrong with the part I mared red.
// general
Blow = function () { if (!(random(75))) {windTarget = (random(21)-10)/3;}wind += (windTarget-wind)/20;};
// snowfall
MovieClip.prototype.addFlake = function() {
this.attachMovie("snow", "s"+++this.depth, this.depth);
var me = this.flakes[this.flakes.length]=this["s"+this.depth];
me.x = random(500)-100;
me._xscale = me._yscale=random(75)+26;
me.scale = me._xscale/100;
};
MovieClip.prototype.killFlake = function(i) {
this.flakes[i].removeMovieClip();
this.flakes.splice(i, 1);
};
MovieClip.prototype.LandFlake = function(i) {
var clip = _root.landscape.snow;
clip.attachMovie("snow", "s"+++this.depth, this.depth);
var me = clip["s"+clip.depth];
me._x = this.flakes[i]._x;
me._y = this.flakes[i]._y;
me._xscale = me._yscale=this.flakes[i]._xscale;
this.killFlake(i);
};
// flakes
MovieClip.prototype.fall = function() {
this._x = Math.cos(this.t += .1)*10+(this.x += _root.wind*this.scale);
this._y += 3*this.scale;
};
MovieClip.prototype.isInBounds = function() {
return (this._x>-100 && this._x<400 && this._y<300);
};
MovieClip.prototype.isTouchingLand = function() {
return _root.landscape.hitTest(this._x, this._y, true);
};
Thanks
Snow Tv
hi i saw somewhere on this site a tv with snow on it does any1 has a link to that b/c i can't ifn it anymore ore got something thats simulair
Snow
Do anyone know how to make the snow. (many white object fall down endlessly)
I have thought of a method by inserting layer and creating motion guide.
But it is complicate and cant make it endlessly.
Can someone know how to make it by actionscript or have any ideas of making snow?
Thanks
Snow
Hey, before i start visit this site: www.synphia.com It isnt any spyware,xxx or such site, its a finnish company that make homepages. I now assume that u have visited the site and hopefully can tell me how i make those snowflakes but the "site itself, and text" still being visible. Now i'm not really a newbie but in this case i dont see it going since the flash movie wants it own space, am i right ?
Snow
I'm using a snow scene in one of my xmas cards (see code below). I'm not an expert at action script, so can anyone give me the code to stop it snowing without coming out of the scene?
thanks.
Mike
(i = 0;
while (Number(i)<>250) {
duplicateMovieClip("/snow", "snow" add i, i);
i = Number(i)+1;
}.
Help With Snow Tut. AS
Could someone PLEASE help me script the snow to my dimensions:
Stage 600 wide x 400 High
I only want the snow in an area 432 Wide x 296 High at the X=80 y=52 position
I've tried scripting it and totally messed it up...again & again & again. I'll never learn this stuff :<(
Here's the original script:
onClipEvent (load) {
onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 300;
movieHeight = 200;
//variables that will modify the falling snow
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
//giving each snowflake unique characteristics
this._xscale = this._yscale=50+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
//putting it all together
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}
Snow
I read the falling snow tutorial in the Flash MX section and I made it but it keeps repeating through the whole movie. How do I get it to stop at a certain point? Thanks.
Snow 2.0?
How can i make something like that with FLash 5, i tryed to follow the steps, when i had to copy the second set of the action script code, i kept telling me it has errors....how do i go about it.. or is it not possible to create such an effect with flash 5?>
-AlBERT
Tv Snow
lo,
does anyone know a good way of making tv snow, you know, the moving black and white dots.
dunno whether it's possible with moving pictures or with actionscript... hmm
thanks.
Snow V.2.0
I follow the tutorial to the letter, but when it comes to publish it, I keep getting a message says that a script is causing it to slow down and eventually time out. The only way around it is to abort the scripts, and if I do that, there's no snow Help?
SNOW V 2.0 HELP ME
ok somebody please help me! i have been trying to do the SNOW.v2.0 tutorial
and i keep getting errors when im done the project, and also my little snow movie clip just sits on the top left corner of my screen.
but yeah i keep getting this error message from flash in waht looks like a text document saying my errors , sometimes 2 soemtimes 4 so yeah can anyone try it and tell me if its the tutorial or is it that im jsut doing wrong.
in anycase i get errors and my little snow wont move at all
what am i doing wroooong?
http://www.kirupa.com/developer/mx2004/snow.htm
Snow
hello,
im trying out the snow effect
http://www.kirupa.com/developer/mx2004/snow.htm
but its not working =(
im keep getting this error :
A script in this movie is causing flash player to run slowly. if it continuesto run you computer may become unresponsice. do you want to abort the script?
thanx bdq
Help With Snow 2.0
I saw the Snow 2.0 tutorial here:
http://www.kirupa.com/developer/mx2004/snow.htm
I wanted to do it, so I followed the instructions, but when I finished, a box came up that said,
Quote:
A script in this movie is causing Flash Player to become unresponsive. Do you want to abort the script?
I know it's not my version of flash because I downloaded the Flash MX file and that worked fine. Can someone help?
I'm using Flash MX Pro 2004.
Snow
Hey guys
I just took this tutorial:
http://www.kirupa.com/developer/mx/snow.htm
Now ive got a problem...
The snow carries over to all the scenes in my movie. I think it has something to do with the duplicate movie action. Ive tried but gone no where.
TIA
-T
Let It Snow
Hello I was reading a tutorial on Falling Snow. I am having difficulties making a movie for a presentation. I want the Falling Snow effect in the background and want to have logos appearing and disappearing. Moreover I need to Export it to .avi and then convert it to .mpeg. The converting part I understand but when I export using the Export feature in Flash it has a single screen and nothing happens. If you have any clue as to what I am talking about please post and tell me how to get the snow to fall in the background. Thanks.
Snow 3.0
Hello there, my name is Atha, and i have a question to make, which i am sure many can answer, except me
I've visited this tutorial
http://www.kirupa.com/developer/flash8/snow.htm
tryed it and it works fine! What i really need to do is, try to move the flakes from bottom to top instead of top to bottom. My problem is that i do not know how to edit the code, and i would like to learn how.
The closest i got so far is by changing the += of this code to -=
this._y += this.k; this._x += this.wind;
the flakes spawn , but they dont respawn when they go out of the screen .
I am sure there is a solution, which i don't have. Please spare some of your time to help me out~!
Thanks in advance!
Snow To Fog...
I'm hoping someone has a suggestion to this issue.
I created a snow animation basically the same way that was in a tutorial on here.
Here is the code i'm using:
init = function () {
width = 900;
// pixels
height = 300;
// pixels
max_snowsize = 10;
// pixels
snowflakes = 50;
// quantity
for (i=0; i<snowflakes; i++) {
t = attachMovie("snow", "snow"+i, i);
t._alpha = 20+Math.random()*60;
t._x = -(width/2)+Math.random()*(1.5*width);
t._y = -(height/2)+Math.random()*(1.5*height);
t._xscale = t._yscale=50+Math.random()*(max_snowsize*10);
t.k = 1+Math.random()*2;
t.wind = -1.5+Math.random()*(1.4*3);
t.onEnterFrame = mover;
}
};
mover = function() {
function fadeOut() {
this._alpha = 0;
}
this._x += this.k;
this._y += this.wind;
if (this._y>height+10) {
this._x = -20;
}
if (this._x>width+20) {
this._y = -(width/2)+Math.random()*(1.5*width);
this._x = -20;
} else if (this._x<-20) {
this._x = -(width/2)+Math.random()*(1.5*width);
this._y = -20;
}
}
init();
I took the idea to make a fog effect instead. Switched the x and y values so the fog would roll in from left to right. that works fine. The problem is that the fog just ends abruptly and comes in all the same.
Is there a time based way, or something to go along with the snow tutorial that will cause the object to fade in and fade out...not just dissapear. I think i'm looking for an actionscript solution. I know how to do it it using alpha and tweens or transitions but that would involve guessing on when the snow will stop falling. Any help would be great.
thanks,
chris
Help With Snow Tut. AS
Could someone PLEASE help me script the snow to my dimensions:
Stage 600 wide x 400 High
I only want the snow in an area 432 Wide x 296 High at the X=80 y=52 position
I've tried scripting it and totally messed it up...again & again & again. I'll never learn this stuff :<(
Here's the original script:
onClipEvent (load) {
onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 300;
movieHeight = 200;
//variables that will modify the falling snow
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
//giving each snowflake unique characteristics
this._xscale = this._yscale=50+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
//putting it all together
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}
Snow
I read the falling snow tutorial in the Flash MX section and I made it but it keeps repeating through the whole movie. How do I get it to stop at a certain point? Thanks.
Snow 2.0?
How can i make something like that with FLash 5, i tryed to follow the steps, when i had to copy the second set of the action script code, i kept telling me it has errors....how do i go about it.. or is it not possible to create such an effect with flash 5?>
-AlBERT
Tv Snow
lo,
does anyone know a good way of making tv snow, you know, the moving black and white dots.
dunno whether it's possible with moving pictures or with actionscript... hmm
thanks.
Snow V.2.0
I follow the tutorial to the letter, but when it comes to publish it, I keep getting a message says that a script is causing it to slow down and eventually time out. The only way around it is to abort the scripts, and if I do that, there's no snow Help?
SNOW V 2.0 HELP ME
ok somebody please help me! i have been trying to do the SNOW.v2.0 tutorial
and i keep getting errors when im done the project, and also my little snow movie clip just sits on the top left corner of my screen.
but yeah i keep getting this error message from flash in waht looks like a text document saying my errors , sometimes 2 soemtimes 4 so yeah can anyone try it and tell me if its the tutorial or is it that im jsut doing wrong.
in anycase i get errors and my little snow wont move at all
what am i doing wroooong?
http://www.kirupa.com/developer/mx2004/snow.htm
Snow
hello,
im trying out the snow effect
http://www.kirupa.com/developer/mx2004/snow.htm
but its not working =(
im keep getting this error :
A script in this movie is causing flash player to run slowly. if it continuesto run you computer may become unresponsice. do you want to abort the script?
thanx bdq
Snow Fall
Does anyone now of a open source file of snow falling or how you would go about creating a snow fall.
ta stu
Snow Is Falling
Hi there,
i want to loop a little movie - for example little snowflakes! There is no problem in letting the snow fall down (tweening) and than looping this motion. But it doesn´t look nature-like ´cause the loop starts from the beginning, so that there is a little break.
Is there a way to make this look more continious, so that it is falling and falling and so on. I hope u understand my problem and thank u in advance!
hi-T
Snow Effect
Hi guys, I was wondering how I could create a snow effect if anybody could help me it would me a lot.
Thanks
Making Snow
It's about that time of year again. Anybody know of a tutorial on how to make snow fall? Or a script that could be adapted? I'm a scripting newbie so a tutorial that is easy to follow, or an fla that is well documented would be great.
Thanks in advance!
Snow Globe.......
Hi
I'm trying to make a a snow globe - you know one of those things you shake about and the snow gently falls to the ground.....any ideas how to!? - i am completely stuck - whatever i do doesn't seem to have the gentle feel....i don't want to animate this either - i'd wanna use as.....help would be appreciated
ta
Falling Snow
Simply question for the board. How can I creat falling snow for my Flash Xmas Card Movie??
Falling Snow
I'm trying to achieve the effect of falling snow in flash for a small animation. My problem is, I'm trying to get the snow to fall randomly, and I'm not sure how it's done. Anyone know the actionscript for this? Thanks in advance. :D
More Snow Questions
Been making a snowglobe thing for the company holiday card...... I've checked out various examples of snow falling, and adapted some things to my project. I'm using code very close to the example in the "Effects" section, created, I think, by StrangeLife2K (nice job, btw). Link is here:
http://www.flashkit.com/movies/Effec...2455/index.php
I've got it all working, but ..
Does anyone know how to make the snow stop? I don't want it to all disappear at once. I'd like to see it go for a limited time and then the last snowflake falls, and then no more appear. I'm still learning all this code, but I don't see how to make the loop just die out.
Any help would be greatly appreciated.
Snow On TV Effect
Hey dudes,
i am trying to achieve an effect in my flash movie that looks like as if there is snow on tv (the distortion when there is no channel tuned in).
i am still very new to flash, do u guys have any idea how to get this effect?
if so please email me and i would be most grateful.
c_prokscha@yahoo.com.au
regards,
chris
Some Light AS For SNOW
Hey All,
I think the last years winter posts must have got prunned, but I'm looking for some nice light code that I'm able to add more and more snow too if I choose.
I had something last year (or the year before) but I can't seem to find it anymore.
It's going to be used in a 60x450 title, so it needs to be somewhat suttle.
Thanks in advance for the help on this one.
Cheers,
Scott
Tv Snow Effect
hmmm ive tried it once and the size went really big :O i want a random tv snow, static effect thats not huge. first thing i tried was pixels with a random gray and it was like 500k so helps nice
Snow Using Actionscript
Can a snow effect be made from scripting? See the "Souvenir" bubble at the bottom of this page. Looks like random patterns in a script
http://www.justmarriedmovie.com/home.html
Snow Effect
hello could some body show me where i could find out snow effect tutorial i know this was there earlier but couldnt find it
How To Stop The Snow?
Hi, I had download a snow fla from this site. And i put at my moive. But when i want the snow to stop somewhere of the frame. ITs still keep going falling snow. Anyone know how to fix this problem?
The code as below
//
// Snowfall algorithm by Grant Skinner. Check out http://gskinner.com/ for updates, more source code and other good stuff.
// To use:
// copy this code into the timeline you wish to display snowflakes in.
// copy the "snowflake" movieclip from this movie's library into your movie's library.
// set the variables below.
//
// Edit these values:
maxSnowFlakes = 60;
snowFallWidth = 780;
snowFallHeight = 400;
windStrength = 50;
// 0-100
snowRate = 10;
// 1-50 (smaller number is more flakes per second)
// don't touch anything below this line:
function startSnowFall() {
// set up the interval:
snowIntervalID = setInterval(this, "doSnowfall", 50);
// initialize values:
snowFlakeCount = windSpeed=windSpeedTarget=windAcc=nextWindChange=0 ;
}
function doSnowfall() {
// wind calculations
nextWindChange--;
if (nextWindChange<=0) {
// change wind speed target
nextWindChange = random(200)+50;
windSpeedTarget = Math.round(random(windStrength)-windStrength/2)/5;
}
windAcc += (windSpeedTarget-windSpeed)/60;
windAcc *= 0.8;
windSpeed += windAcc;
if (snowFlakeCount<maxSnowFlakes && random(snowRate) == 0) {
// add a snowflake:
snowFlakeCount++;
this.attachMovie("snowflake", "s"+snowFlakeCount, snowFlakeCount);
}
}
function endSnowFall() {
for (var i = 1; i<snowFlakeCount; i++) {
this["s"+i].removeMovieClip();
}
clearInterval(snowIntervalID);
}
// END snowflake algorithm
stopSnowFall();
Please Help Me Get Heavier Snow
Hello all,
Hope this is the correct forum for this post:
I've downloaded
this
nice snow effect by nagaraj from the open source movie section, however when I add it to the movie I'm creating it seems that there is a great deal less snow than on the original file. Admittedly, there is a lot of other stuff going on in the movie, which may slow recalculation or something (clutching at straws), anyway, I wonder if anyone may be able to help me make the snow a bit denser or even larger - my knowledge of actionscript is poor, but heres the pasted action from the file:
a = Number(a)+1;
duplicateMovieClip("/nagaraj", a, a);
rx = random(615);
ry = random(100);
setProperty(a, _x, rx);
setProperty(a, _y, yx);
a = Number(a)+1;
duplicateMovieClip("/nagaraj", a, a);
rx = random(615);
ry = random(100);
setProperty(a, _x, rx);
setProperty(a, _y, yx);
setProperty(a, _xscale, 75);
setProperty(a, _yscale, 75);
a = Number(a)+1;
duplicateMovieClip("/nagaraj", a, a);
rx = random(615);
ry = random(100);
setProperty(a, _x, rx);
setProperty(a, _y, yx);
setProperty(a, _xscale, 110);
setProperty(a, _yscale, 110);
a = Number(a)+1;
duplicateMovieClip("/nagaraj", a, a);
rx = random(615);
ry = random(100);
setProperty(a, _x, rx);
setProperty(a, _y, yx);
setProperty(a, _xscale, 140);
setProperty(a, _yscale, 140);
if (Number(a)>210) {
stop();
Thanks for any help.
Mark
Creating Snow
Is there a way to add a layer over top of a movie that makes it look like it is snowing?
|