# How would I change this to do

**URL:** <https://forum.kirupa.com/t/how-would-i-change-this-to-do/331613>\
**Category:** Uncategorized\
**Created:** [September 10, 2013, 2:27pm UTC](https://forum.kirupa.com/t/how-would-i-change-this-to-do/331613 "2013-09-10T14:27:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike8](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Mike8](https://forum.kirupa.com/u/Mike8)\
**Post date:** [September 10, 2013, 2:27pm UTC](https://forum.kirupa.com/t/how-would-i-change-this-to-do/331613/1 "2013-09-10T14:27:19Z")

</div>

Hello

First the task : I simply need to create a ‘screensaver’ in flash SWF format - of a company logo moving around the screen container and bouncing off the 4 walls, laws of physics etc wouldn’t really be necessary - the SWF just has to loop infinitely and the logo must keep moving.

I found a really nice project file from [http://www.FreeActionScript.com](http://www.FreeActionScript.com) - see attached. It is a very neatly coded and clearly commented project with a physics engine that creates a user - inputted amount of balls on screen in a container that float around the screen with full collision detection on the walls and on other balls. Big ups to the coder, whose name I can’t find in the comments.

For me something like this is truly impressive - and I thought myself able to change / greatly simplify the code to simply act on a movieclip of a logo I placed on stage - but just can’t get it right. I wish I could understand how someone codes something like this from the ground up, with constructors and physics and functions and and and… its been so long since I looked at code and its depressing me that I can’t solve this task…

Please could any kind soul describe to me what parts of the existing code files I should try change to get the existing physics engine to act on a movieclip logo that I would create (not yet created in the attached project) and not actually draw any balls at all?

kind regards  
Mike
