# Wanted a thunderstorm tutorial

**URL:** <https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701>\
**Category:** flash\
**Created:** [May 25, 2003, 7:39am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701 "2003-05-25T07:39:07Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![cturner](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@cturner](https://forum.kirupa.com/u/cturner)\
**Post date:** [May 25, 2003, 7:39am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/1 "2003-05-25T07:39:07Z")

</div>

I need a good thunderstorm tutorial that someone might have seen or used. I have been searching and haven’t found a suitable tutorial. I want to put it on a picture that I have. No movies please just a link to a tutorial.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 9:13am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/2 "2003-05-25T09:13:34Z")

</div>

I have yet to find a thunderstorm tut, but I have a few flas that I have aquired. I’ve used quite a bit from these flas. What is it that you want to emulate, I can probably help. (Kinda goes with the name…)  
(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 12:04pm UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/3 "2003-05-25T12:04:00Z")

</div>

I have a picture of storm clouds and wanting to put lightning and the whole effect of a thunderstorm on it. There is no hurry I am just wanting to know how to do it.

Do you know if flash can communicate with Internet Explorer’s status bar and title bar?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 8:33pm UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/4 "2003-05-25T20:33:00Z")

</div>

Do you want lightning like what’s on my footer, or something better, or something more simple? When I was first learning flash, I used this simple trick to make lightning:  
[http://www.tempethunderpress.com](http://www.tempethunderpress.com)  
You can find tons of thunder sound at:  
[http://www.findsounds.com](http://www.findsounds.com)

For your second q, I’m not sure, I’ve never tried. I usually just put something in the statusbar that stays through the duration with:

```php

<script language="javascript">
window.defaultStatus="Whatever you wanna have there";
</script>

```

Then for the title - when you write/edit your HTML file that contains your flash, it’s in the header:

```php

<head>
<title>This Is Your Title</title>
</head>

```

You can write a script that will make the title active (change message), but as for flash controlling it dynamically, not sure.  
Let me know!  
(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 25, 2003, 9:28pm UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/5 "2003-05-25T21:28:33Z")

</div>

```auto
// Code by Todd Yard from 27Bobs
makeBolt = function(x, y, size, alpha) { 
   var strike = this.createEmptyMovieClip("strike", depth++); 
   var topStrike = strike.createEmptyMovieClip("topStrike", 1); 
   var alphaStrike = strike.createEmptyMovieClip("alphaStrike", 0); 
   topStrike.lineStyle(size[0], 0xFFFFFF, alpha[0]); 
   alphaStrike.lineStyle(size[1], 0xFFFFFF, alpha[1]); 
   topStrike.moveTo(x, y); 
   alphaStrike.moveTo(x, y); 
   while (y < 400) { 
      y += randNum(30); 
      x += randNum(30) - 15; 
      if (Math.random() > .9) { 
         var sizes = [Math.max(1, size[0] - 1), Math.max(1, size[1] - 1)]; 
         var alphas = [alpha[0] * .8, alpha[1] * .8]; 
         makeBolt(x, y, sizes, alphas); 
      } 
      topStrike.lineTo(x, y) 
      alphaStrike.lineTo(x, y) 
   } 
   strike.onEnterFrame = function() { 
      this._alpha -= 10; 
      if (this._alpha <= 0) this.removeMovieClip(); 
   } 
}; 

randNum = function(num) { 
   return Math.random()*num; 
}; 

this.onMouseDown = function() { 
   depth = 0; 
   makeBolt(randNum(300) + 125, 0, [3, 7], [70, 30]); 
}; 

```

pom 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 1:22am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/6 "2003-05-26T01:22:10Z")

</div>

I suppose the lightning that is in your footer would be good, **Freddythunder**.

**ilyaslamasse** I tried your script and I have errors which are:

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 14:  
Operator ‘\*’ must be followed by an operand:

```php

var alphas = [alpha[0] * .8, alpha[1] * .<img src=" **images/smilies/bluecap.gif**" border=" **0**" alt="">;

```

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 15:  
‘]’ or ‘,’ expected:

```php

makeBolt(x, y, sizes, alphas);

```

I don’t understand actionscript that much but would love to learn more and another thing how did you Actionscript: before the code when you posted that code.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 1:25am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/7 "2003-05-26T01:25:36Z")

</div>

there. Ilyas’s script will work now. Stupid smileys screwed it up. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 5:06am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/8 "2003-05-26T05:06:58Z")

</div>

Thank you **Jubba**.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 5:50am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/9 "2003-05-26T05:50:21Z")

</div>

i can help you with rain, if you are interested

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 8:41am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/10 "2003-05-26T08:41:39Z")

</div>

OK **prstudio** that would be great.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 9:36am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/11 "2003-05-26T09:36:46Z")

</div>

Thanks Jubby 🙂 And it’s not my code, unfortunately :phil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 9:50am UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/12 "2003-05-26T09:50:09Z")

</div>

Well this isn’t as pretty as the code pom posted, but it’s another possibility I guess. =)

[http://www.flashkit.com/movies/Third\_Party/Swish/Lightnin-Sherobe-6575/index.php](http://www.flashkit.com/movies/Third_Party/Swish/Lightnin-Sherobe-6575/index.php)

Here’s another one as well…

[http://www.flashkit.com/movies/Third\_Party/Swish/Lightnin-sherobe-6567/index.php](http://www.flashkit.com/movies/Third_Party/Swish/Lightnin-sherobe-6567/index.php)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 2:59pm UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/13 "2003-05-26T14:59:48Z")

</div>

this is my rain  
[http://www.poorreflection.com/development/portfolio/flash/waterdrops.html](http://www.poorreflection.com/development/portfolio/flash/waterdrops.html)  
that cool to you?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 3:29pm UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/14 "2003-05-26T15:29:25Z")

</div>

Nice one, prstudio, but the circles are not very well centered, and they disappear too fast (in my opinion).

pom 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2003, 5:17pm UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/15 "2003-05-26T17:17:37Z")

</div>

you’re right - that one is from the archives…though may not be fixed for a while - its gone to that place where all good old flash projects go…the back folders of my server

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 5:08pm UTC](https://forum.kirupa.com/t/wanted-a-thunderstorm-tutorial/21701/16 "2003-10-30T17:08:40Z")

</div>

how’d you do that rain effect?
