# AS# Object Interaction Conundrum

**URL:** https://forum.kirupa.com/t/as-object-interaction-conundrum/249378
**Category:** flash
**Created:** [January 18, 2008, 3:44am UTC](https://forum.kirupa.com/t/as-object-interaction-conundrum/249378 "2008-01-18T03:44:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![worthington747](https://avatars.discourse-cdn.com/v4/letter/w/b9e5f3/32.png) [@worthington747](https://forum.kirupa.com/u/worthington747)
#### Post date: [January 18, 2008, 3:44am UTC](https://forum.kirupa.com/t/as-object-interaction-conundrum/249378/1 "2008-01-18T03:44:18Z")

</div>

[FONT=Calibri][SIZE=3]Having taken the plunge into AS3, by encapsulating my classes in external as files, I’ve come across an issue regarding the interaction between Objects.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]//I’ll dumb my example down to make it more universal[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]I have _box Object_ which tells another Object _circle_ to do something.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]As it stands when creating my _box_ I pass along a parameter \*circle \*which allows the _box_ to have control of the circle.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]My gut tells me that passing the parameter \*circle \*breaks the rules of encapsulation, which is why I’m seeking your advice on how to properly allow the _box_ to tell the _circle_ to do something without baking the link into the class.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3] [/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]Thanks in advanced.[/SIZE][/FONT]
