# Easy code fix plz help i cant figure how to

**URL:** <https://forum.kirupa.com/t/easy-code-fix-plz-help-i-cant-figure-how-to/119957>\
**Category:** Uncategorized\
**Created:** [August 19, 2004, 2:12pm UTC](https://forum.kirupa.com/t/easy-code-fix-plz-help-i-cant-figure-how-to/119957 "2004-08-19T14:12:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@Brandon](https://forum.kirupa.com/u/Brandon)\
**Post date:** [August 19, 2004, 2:12pm UTC](https://forum.kirupa.com/t/easy-code-fix-plz-help-i-cant-figure-how-to/119957/1 "2004-08-19T14:12:11Z")

</div>

i’ve been using the equillibrium code that centers an object between 4 other objects, but when you put the 4 objects inside of another symbol it messes up and i have all the roots right. If you look at the .fla you will be able to see how easy the code is ( its in the square) but it wont work.

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 19, 2004, 9:50pm UTC](https://forum.kirupa.com/t/easy-code-fix-plz-help-i-cant-figure-how-to/119957/2 "2004-08-19T21:50:32Z")

</div>

sorted you out via email…  
if ne1 wants to know, heres the prob he was havin:

1. you had

\_root.ball1.1.\_x+\_root.1.ball2.\_x…

notice the difference to the path for ball 1?

1. the mc your balls were in didnt actually have an instance name…  
but i gave it an instance name = the symbol name which led to problem  
3:

2. flash does not like instance names starting with numbers. so i  
named your balls mc

a1

changed the paths and hey presto…it works… ish… which leads to  
secret problem number 4! lol

dont forget that in an mc a symbols xy values are calculated from the  
registration point, so to get it to be a “true” equilibrium, you have  
to ensure that your balls mc has a registration point at the top left  
hand corner of your document 😉

Prophet.
