# Random movie clip help

**URL:** https://forum.kirupa.com/t/random-movie-clip-help/21445
**Category:** flash
**Created:** [May 21, 2003, 5:44pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445 "2003-05-21T17:44:38Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![wicious](https://avatars.discourse-cdn.com/v4/letter/w/94ad74/32.png) [@wicious](https://forum.kirupa.com/u/wicious)
#### Post date: [May 21, 2003, 5:44pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/1 "2003-05-21T17:44:38Z")

</div>

Hi! I want to create an underwater scene with bubbles. I have created a movie clip called “bubble”. How do I make that movie clip randomly appear and then diappear at different positions in my movie? Also, is it possible to make the bubble randomly appear in more than 1 place at a time? Thanks for the help!

---

<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 21, 2003, 8:35pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/2 "2003-05-21T20:35:17Z")

</div>

you mean like this?

(yes, in my world bubbles are square…)

---

<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 21, 2003, 9:00pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/3 "2003-05-21T21:00:16Z")

</div>

Hi,  
Nice one zylum - have a look at this one - in my world bubbles are round ( lol!!!)  
Awhile ago I found a Flash 4 file with a single bubble in it and movement generated by a tween - I kept it(for the graphivcs) converted to MX and added the movement and duplication that you see, and lo and behold I found a client who wanted a site with bubbles !  
If you can use it wicious, please do, hope it helps

SteveD

---

<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 21, 2003, 9:01pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/4 "2003-05-21T21:01:28Z")

</div>

ooooooooooooooppppps !!! forgot to upload it - here you go

---

<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 21, 2003, 9:22pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/5 "2003-05-21T21:22:10Z")

</div>

why are there four different levels for such a simple fla? the script is so hard to find, some is in the second and some is in the fourth. i prefer to keep all the code in the actions layer in the main/root timeline too keep it nice and simple, especially if sharing the script with others so that they don’t have to go looking for it. i have done the same effect WITH continous motion (really just roll over or whatever) instead of having the bubbles fly off into nothingness,(eventualy overloading the processor with huge numbers form the coordinates of the bubbles) any ways, heres the fla if your interesed…

---

<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 21, 2003, 9:23pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/6 "2003-05-21T21:23:21Z")

</div>

ps, bubbles are square! it’s physically impossible for spherical bubbles to exist in nature!!!

lol

---

<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 21, 2003, 9:46pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/7 "2003-05-21T21:46:30Z")

</div>

Hi zylum  
You may prefer to keep the code on the main timeline, but in thids particuler case the bubbles are fired by an action elsewhere in the movie that i took the trouble to remove so as not to confuse others. I was actually trying to help someone else and didn’t really expect such criticism (lol!!!)

> ps, bubbles are square! it’s physically impossible for spherical bubbles to exist in nature!!!

I have never seen a square bubble and the the company I did the site for would not have been impressed as in the marine fish shop they own there is not a square bubble in site !!!

SteveD

---

<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 21, 2003, 9:51pm UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/8 "2003-05-21T21:51:25Z")

</div>

that may explain things. it made it a bit confusing for me but i understand that people have there preferences.

anyways, due to the second law of elasticity and the counteracting force of inverted centripital force, and the force of the moons gravity counterimposing on the earth’s… ahhh nevermind… you wouldn’t understand anyways… 🙂

---

<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 22, 2003, 3:55am UTC](https://forum.kirupa.com/t/random-movie-clip-help/21445/9 "2003-05-22T03:55:25Z")

</div>

Thanks for the help! Both of you sent me exactly what I needed. And the square bubbles were a nice touch!
