Here is a script that I needed for work: a realistic floating soap bubbles effect in flash.
Inside Bubbles.as you can set the boundaries (min x, min y, max x and max y), the number of bubbles, and the start point/end point of where the bubbles come out from.

Hi! awesome script, thanks for share.
Dude i have a problem, i use our script and change some things, but i can’t put the bubbles in the back, i want to puts some text flying around the flash screen but i can’t put the bubbles behind the text, can you help me?
Again thanks for share, nice work
Hi 4ourgs,
Create separate containers for everything, layered in their appropriate highs: background < bubble container < text container
Add bubbles to the bubble container, and add text to the text container.
PR
Hi,
Thanks for this beauty! It works great but as soon as I place stop(); action (nothing else) on the timeline I get the following compiler errors: “…Main.as, Line 1 – 1180: Call to a possibly undefined method addFrameScript.” and “…Layer ‘actions’, Frame 13, Line 1 – 1180: Call to a possibly undefined method stop.”
Any idea what is going on? There is no “addFrameScript” anywhere as far as i can see…
Thanks,
M
Hi there,
The document class (Main.as) extends Sprite. Sprites can’t have code attached to the timeline. Extend MovieClip instead of Sprite.
PR
Many thanks!
M
I wonder if there was a way to stop bubbles from appearing in certain frames, a command that would disable Main.as from kicking in depending on the frame…
Hi magic,
Not sure what you’re trying to create … What do you mean by certain frames?
PR
this is incredibly. its exactly what i want as part of a banner project for my flash class. but how in the hell do i use it?!
Hi bardoom,
I’m sorry but I cannot offer assistance there. You can try seeking help on AS3 forums. Check out the resources page for some links.
Thanks,
PR
OMG this is really nice work!
Thanks Rustam!