# Lottery Game Help

**URL:** <https://forum.kirupa.com/t/lottery-game-help/170635>\
**Category:** programming\
**Created:** [November 28, 2005, 9:45am UTC](https://forum.kirupa.com/t/lottery-game-help/170635 "2005-11-28T09:45:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebelsoul2005](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rebelsoul2005](https://forum.kirupa.com/u/rebelsoul2005)\
**Post date:** [November 28, 2005, 9:45am UTC](https://forum.kirupa.com/t/lottery-game-help/170635/1 "2005-11-28T09:45:26Z")

</div>

Hi, I am a first time poster on this, or any other board actually! But my problem is this:

I am trying to create a virtual lottery machine in Flash MX/8 and have hit upon a problem, how do I create a collision detection within a circle? I have managed to work with setting edges and haveing the balls bounce around with a given area that way, but doing it within a circle is proving tricky and I do not know where to start!

Here is an example of what I am trying to create:

[color=#008000]http://[www. **flash** guru.co.uk/ **flash** -experiment- **bingo** - **machine** /](http://www.flashguru.co.uk/flash-experiment-bingo-machine/)[/color]

unfortunately there is no tutorial for this and I have spent many an hour searching google and text books with not luck!

This is probably reasonably simple but any help will be very much appreciated!

Cheers

Ben
