# Restricting space for actionscripted bubbles

**URL:** <https://forum.kirupa.com/t/restricting-space-for-actionscripted-bubbles/261862>\
**Category:** Uncategorized\
**Created:** [May 31, 2008, 11:59pm UTC](https://forum.kirupa.com/t/restricting-space-for-actionscripted-bubbles/261862 "2008-05-31T23:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![collie\_man](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@collie\_man](https://forum.kirupa.com/u/collie_man)\
**Post date:** [May 31, 2008, 11:59pm UTC](https://forum.kirupa.com/t/restricting-space-for-actionscripted-bubbles/261862/1 "2008-05-31T23:59:27Z")

</div>

I’m trying to create random sized & speed bubbles rising in a tank.

I found a code that I could adapt for the job, but I’m struggling to restrict these bubbles to a certain layer or to just rise inside the space I want.

I’ve attached the .fla for anyone to look at, they would ideally be on the ‘bubbles’ layer, and only rising inside the green tank.

I like a challenge and would usually take the time to find more info and mess about but I need this one done quick and can’t find much help!

Cheers!  
:hat:

---

<div class="post-metadata">

**Author:** ![collie\_man](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@collie\_man](https://forum.kirupa.com/u/collie_man)\
**Post date:** [June 1, 2008, 12:02am UTC](https://forum.kirupa.com/t/restricting-space-for-actionscripted-bubbles/261862/2 "2008-06-01T00:02:42Z")

</div>

I lied… here it is!

[http://www.pacific-shi](http://www.pacific- **** e.com/hpf.rar) [te.com/hpf.rar](http://te.com/hpf.rar) (minus the gap)  
[](http://www.pacific- **** e.com/hpf.rar)  
425kb
