Growing Actor until it touches other actor

Hi, I'm stuck with this.
I have a scene with collidable walls and balls of different sizes scattered around.
I need to spawn a new ball actor and grow it until it touches either a wall or another of the existing balls.
I know how to grow the actor using a variety of means (interpolate, timer with change width and height, resize actor...) but can't find a way to make it stop growing when it touches another actor.
help with be very much appreciated :-)
thanks Pedro
I have a scene with collidable walls and balls of different sizes scattered around.
I need to spawn a new ball actor and grow it until it touches either a wall or another of the existing balls.
I know how to grow the actor using a variety of means (interpolate, timer with change width and height, resize actor...) but can't find a way to make it stop growing when it touches another actor.
help with be very much appreciated :-)
thanks Pedro
Comments
Timer (every .025 seconds)
--When actor overlaps or collides with actor of type wall
---- (its blank here)
--Otherwise
----Change Attribute: self.Size.Width To: self.Size.Width + 10
For example
When actor of type Ball touches actor of type wall
Chg attribute State - 2
Then a seperate rule
When attribute state = 2, (stop getting bigger, apply gravity, etc)